home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / visulztn / sphinx / sphinx.lha / files / SPHINX_CAN_DIR < prev    next >
Encoding:
Text File  |  1993-04-08  |  112.2 KB  |  2,696 lines

  1. $DEB 995 000 000 000 000
  2. IMAGE FILES
  3.  
  4. Sphinx  processes  various  image  formats  using the DIRECT
  5. ACCESS  READ and FREE  FORMAT  READ  functions.  The  dialog
  6. boxes  associated  with these  functions are used to specify
  7. the image  format, such as header  size,  record  length and
  8. pixel  value  coding  (e.g.,  bit ,  integer  or real).
  9.  
  10. The SIMPLE FILE READ function reads basic image formats 
  11. composed of a line and column array with byte encoded pixels.
  12. Sphinx reads and writes both TIFF and GIF formats.
  13. Sphinx can read and write  compressed  image  formats (*.Z)
  14. When they are read, the files are automatically  decompressed
  15. before being displayed. When they are saved, they are 
  16. compressed as they are written to a file.
  17.  
  18. $END ---------------------------------------------------------------------
  19. $DEB 990 000 000 000 000Architecture
  20. CAUTIONARY NOTE
  21.  
  22. Sphinx  3.02 is a  pre-release  beta  version  designed  for
  23. on-site   usage  and   evaluation.  Despite  its   extensive
  24. testing,  this version may contain  errors that have not yet
  25. been  detected.  If you  discover  any  errors  or have  any
  26. suggestions/problems  with the program, we would  appreciate
  27. your bringing them to the attention of:
  28.  
  29.   POLDER/SPHINX project Office at:  sphinx@loa.citilille.fr
  30.  
  31.  The Sphinx Image Processing & Analysis System Sphinx is the
  32.    result of years of research and  development in satellite
  33.    image    processing   at   the   Laboratoire    d'Optique
  34.    Atmospherique (LOA) of the Universite de Lille, France.
  35.  
  36.    This satellite image processing  package was designed and
  37.    developed  in  response  to the daily  research  needs of
  38.    scientists     conducting    applied    global    climate
  39.    investigations  using  satellite data and remote  sensing
  40.    techniques.    LOA    scientists    apply     space-based
  41.    observations and numerical  modeling  techniques to study
  42.    the earth' s radiation budget and atmospheric  processes.
  43.    They  are   specialists   in   observing   and   modeling
  44.    interactions  of solar and  telluric  radiation  with the
  45.    earth system under clear and cloudy conditions.
  46.  
  47.    Constructing atmospheric models has required a synergy of
  48.    knowledge from several  disciplines,  namely climatology,
  49.    meteorology, and remote sensing.  To test  climatological
  50.    models, LOA scientists employ space-based  observations a
  51.    nd  ground-truth  data.  The steady,  global  coverage of
  52.    satellite  observations  constitutes  an  ideal  tool for
  53.    verifying climatological models as well as for conducting
  54.    process studies and investigating new phenomena.
  55.  
  56. Owing to the reliance on satellite  observations,  extensive
  57. research and development at LOA has been devoted to building
  58. Sphinx, a state-of-the-art image processing system that runs
  59. across a spectrum  of high  performance  computer  platforms
  60. operating  under  UNIX  and  the X  Window  System.  Today,
  61. Sphinx serves as LOA' s day-to-day  image  processing  tool.
  62. It has benefited  from critical  feedback  from users in the
  63. scientific community.
  64.  
  65. The Sphinx  image  processing  system  provides:  simple and
  66. friendly usage, fast interactive  performance,  capabilities
  67. to combine images, vector  graphics, and text for generating
  68. quality  reports, rapid display of  high-resolution  (1024 x
  69. 1024)  multispectral  images, interactive  generation of new
  70. algorithms   for   converting    satellite   signals.   Easy
  71. interfacing with externally generated software.
  72.  
  73. For  flexibility,  the menu driven  Sphinx  package is built
  74. using a number of  reentrant  modules.  Hence,  the user can
  75. return at  anytime  to the main menu to begin a new  process
  76. using the results of ongoing calculations.
  77.  
  78.   The software package includes:  An interactive interpreter
  79.  for both  algebraic  equations and images.  This allows the
  80.  user to  manipulate  and combine  individual  data channels
  81.  interactively.  Standard   FORTRAN  notation  is  used  for
  82.  formula  entry and for  trigonometric and  transcendental
  83.  functions.  An on-line 2 and 3 dimensional graphics editor.
  84.  This provides  complete  flexibility  for modifying  vector
  85.  graphics  and  integrating   vector  graphics  and  images.
  86.  Multiple  output  possibilities  (e.g.,  color, gray scale,
  87.  black  and  white)  for both  inkjet  and  laser  printers.
  88.  
  89.  Satellite  signal  simulation  in the  solar  spectrum.  An
  90.  English/French on-line help manual.  Sphinx was selected by
  91.  the French space agency, Centre National d'Etudes Spatiales
  92.  (CNES),  for   analyzing  the  results  from  the  POLDER
  93.  satellite  program.  The  Sphinx  package  is now in use at
  94.  many  laboratories in France,  including:
  95.  - Centre  National d'Etudes Spatiales
  96.  - Centre des Faibles Radioactivites
  97.  - Centre de Recherche en Physique de  l'Environnement
  98.  - Ecole Normale Superieure
  99.  - Institut  National de la Recherche  Agronomique
  100.  - Laboratoire  d'Etudes  et de  Recherches en Teledetection
  101.  Spatiale
  102.  - Laboratoire de Glaciologie et de  Geophysique  de
  103.  l'Environnement
  104.  - Laboratoire  de  Meteorologie Dynamique
  105.  - Laboratoire  d'Oceanologie  Dynamique et de  Climatologie
  106.  - Laboratoire  de Physique  et Chimie  Marinei
  107.  - NASA (Goddard Space Flight Center)
  108.  
  109. SPHINX ENVIRONMENT
  110.  
  111. IMAGE FILES
  112.  
  113. Sphinx  processes  various  image  formats  using the DIRECT
  114. ACCESS  READ and FREE  FORMAT  READ  functions.
  115. The  dialog boxes  associated  with these  functions are
  116. used to specify the image  format, such as header  size,
  117. record  length and pixel  value  coding  (e.g.,  bit ,
  118. integer  or real).
  119.  
  120. The SIMPLE FILE READ function reads basic image formats 
  121. composed of a line and column array with byte encoded pixels.
  122. Sphinx reads and writes both TIFF and GIF formats.
  123. Sphinx can read and write  compressed  image  formats (*.Z)
  124. When they are read, the files are automatically  decompressed
  125. before being displayed. When they are saved, they are 
  126. compressed as they are written to a file.
  127.  
  128. IMAGE PLANES SPHINX DISPLAYS
  129.  
  130. 8 bit  1024 x 1024  images.  However,  it can  also  process
  131. larger  images,  displaying  them  either  partially  or  as
  132. complete images reduced through sampling to 1024 x 1024.
  133.  
  134. Sphinx  operates  using two image  plane  groups.  The first
  135. group of visible  planes is displayed  on the screen,  while
  136. the  second  group of hidden  planes is stored to disk.  The
  137. EDIT menu allows you to exchange the contents of the visible
  138. and hidden planes.
  139.  
  140.  
  141.   Each group is composed  of three 8 bit 1024 x 1024  planes
  142. denoted as R, G, and B (Red, Green, Blue).  The DISPLAY
  143. menu allows you to display one of the three  planes or 
  144. to display a composite  image of all three planes ( 'true
  145. color'  mode).  Each plane is divided into 4 quadrants
  146. represented as A, B, C and D (from  top to  bottom  and
  147. left to  right)  for the visible  planes and E, F, G and H for
  148. the hidden  planes.  The various Sphinx  functions can work on
  149. an entire plane or on the quadrants selected by the user.
  150.  
  151. COLOR
  152.  
  153. Sphinx  operates in two color  modes.  In the PLANE  mode, a
  154. single  (R, G or B) plane is  displayed  on the  screen.  In
  155. true color mode, Sphinx  displays the composite image of the
  156. three planes.  Sphinx  approximates  the true color by using
  157. 3/3/ 2 bit coding.  In true color mode, however, the results
  158. are output in 24-bit true color.  The user can obtain a good
  159. idea of the true color  output by using the  special 24 to 8
  160. bit  transform  function  under the Print  Menu.  Each plane
  161. possesses  its own color  map.  The color  maps are read and
  162. written  to files  which  may be  modified  using  the COLOR
  163. functions.
  164.  
  165. THE SPHINX SCREEN
  166.  
  167. The IMAGE  window  takes up the largest  part of the screen,
  168. displaying a 1024 x 1024 plane that is divided into the four
  169. A, B, C and D quadrants.  The COLOR MAP window is located 
  170. to the right of the IMAGE  window and shows the color  scale
  171. in use.  Two  commands in the DISPLAY  menu, SHOW COLOR 
  172. MAP and HIDE COLOR MAP,  displays and hides this window.
  173. The VALUES window, a long thin strip located  beneath 
  174. the IMAGE window, displays the pixel values in an image.
  175. The small COORDINATE window,  located in the lower right of
  176. the screen,  displays the pixel  coordinates  beneath the
  177. mouse location.  The RGB window, located in the lower right
  178. of the screen,  registers the plane  being  displayed  as
  179. R, G or B, or R/G/B  when in true color mode.  
  180. The small INFORMATION window, also located in the lower
  181. right of the  screen,  displays  the  operation mode as it
  182. awaits a  command,  such as  selecting  an image area.
  183. You can hide the windows of the Sphinx environment by using
  184. the  ICONIFY  Sphinx  function.  This  redisplays  the
  185. original screen prior to launching Sphinx.  To return to the
  186. Sphinx environment, simply click on the small icon.
  187.  
  188. USING THE MOUSE
  189.  
  190. The right mouse  button is used to display  the pop-up  main
  191. menu and to select  image  areas.  The left mouse  button is
  192. used  within the menus and dialog  boxes.  The middle  mouse
  193. button, when it is present, is not utilized by Sphinx.
  194.  
  195. SPHINX MAIN MENU
  196.  
  197. The Sphinx main menu is not displayed  continuously  so that
  198. the  IMAGE  window  is not  obstructed.  To make it  appear,
  199. press on the right mouse  button  without  letting  go.  The
  200. Sphinx  menu  contains   listings  that  either  access  the
  201. submenus (indicated by arrows) or activate the corresponding
  202. functions.
  203.  
  204. To access a  submenu,  place the mouse on the right  part of
  205. the  desired  listing  (over  the  arrow).  This  makes  the
  206. corresponding  submenu  appear  from which you can  select a
  207. function.  When you  have  selected  the  desired  function,
  208. release the mouse button.
  209.  
  210.   The main menu can be  called up from the  function  dialog
  211. boxes by clicking  with the right  button on the Sphinx MENU
  212. window  located  on the  lower  right  of the  screen.  This
  213. allows you to execute another function, and after this funct
  214. ion is  executed,  Sphinx  returns to the initial  box.  For
  215. instance, if you are in a dialog box and you want to measure
  216. a pixel  value,  you click on the  Sphinx  MENU  window  and
  217. select the PIXEL VALUES function.  This mechanism allows
  218. you to queue up to nine function requests.
  219.  
  220.  
  221. THE FUNCTION DIALOG BOXES
  222.  
  223.  Most Sphinx functions begin by displaying a dialog box that
  224. allows you to specify various  parameters  (e.g., file names
  225. and sizes, image planes, quadrants, etc.).  If you need help
  226. using a function  dialog,  click the left  button on the "?"
  227. icon  located  to the  right of the title  bar.  To move the
  228. dialog  box, place the mouse arrow on the title bar and hold
  229. down  the left  mouse  button.  Then  move the  mouse to the
  230. desired screen position.
  231.  
  232. You can also move the dialog box by clicking  the left mouse
  233. button on the "X" icon located to the left of the title bar.
  234. This will  automatically  move the  dialog  box to the right
  235. side of the screen.  Clicking again on this icon will return
  236. the dialog box to its initial  position.  All dialog  boxes
  237. include an EXIT  button.  To exit a function,  click on this
  238. button using the left mouse button.
  239.  
  240. Certain  dialogs include an EXECUTE or RUN button.  In these
  241. boxes you can input various  options  before  executing  the
  242. function by clicking  the button.  As mentioned  above, from
  243. all the  dialog  boxes  you can  call up the  main  menu  by
  244. clicking on the Sphinx MEN U window with the right button.
  245.  
  246. ON-LINE HELP
  247.  
  248.  You can access the  on-line  help by using  either the HELP
  249. submenu or the "?"  icon in each dialog box.  From the HELP
  250. submenu,  you can select the  desired  topic.  Using the "?"
  251. icon in each dialog box, you directly access the description
  252. of that  function.  The help boxes  contain a NEXT button to
  253. advance  to the  subsequent  instruction  page,  a  PREVIOUS
  254. button to return to the previous page, and an EXIT button to
  255. quit the on-line help.
  256.  
  257. You must click these  buttons  using the left mouse  button.
  258. NOTE:  when a help dialog box is displayed, the other dialog
  259. boxes as well as the Sphinx  main menu are not  active.  You
  260. must leave the on-line  help (by clicking the EXIT button in
  261. the box) in order to redisplay the other Sphinx functions.
  262.  
  263. MAIN FUNCTIONS
  264. --------------
  265.  From the  main  menu  you can  directly  access  the  PIXEL
  266.  VALUES,  ZOOM, REFRESH and ICONIFY  Sphinx  functions.
  267.  
  268.  The other  functions are accessed  through the submenus. 
  269.  
  270.  PIXEL VALUES  determines  the  value  of a pixel. 
  271.  
  272.  ZOOM  enlarges specific  image areas on the screen. 
  273.  
  274.  REFRESH redraws the screen and  clears the  overlay  plane.
  275.  
  276.  The FILE  submenu reads and  writes  image and color  table
  277.  files as well as contour and annotation files.
  278.  It also allows you to save a work  session  that can be
  279.  continued at a later time.
  280.  
  281.  The DISPLAY submenu  controls the choice of the plane
  282.  displayed (R, G, B or a combination of the three planes in
  283.  true color mode).  It also  controls  the  display  of the
  284.  COLOR  MAP window.
  285.  
  286.  The COLOR submenu accesses the color  manipulation
  287.  functions.
  288.  
  289.  The  EDIT  submenu  accesses  the  basic  image
  290.  manipulation  functions and the annotation  functions.
  291.  
  292.  The PROCESS  submenu  contains the mathematical processing
  293.  functions,  the  external   functions,  and  the  animation
  294.  functions.
  295.  
  296.  The PLOT submenu  accesses  functions to graph,
  297.  contour, and grid.
  298.  
  299.  The PRINT submenu accesses the printing functions to print
  300.  on PostScript or LaserJet printers.
  301.  
  302.  The SIGNAL MODELS submenu accesses the  satellite   signal
  303.  simulation  functions.
  304.  
  305.  The  GEOMETRY  MODELS  accesses the geometric  manipulation
  306.  functions,   such  as   warping, satellite  geometry and 
  307.  orbit simulation.
  308.  
  309.  The HELP submenu accesses the on-line help by topic.
  310.  
  311. FILE MENU
  312. ---------
  313. The FILE submenu reads and writes files  containing  images,
  314. color maps,  annotations,  and contours.  It also allows you
  315. to save a work session that can be continued later.
  316.  
  317. The SIMPLE FILE READ  function  reads  basic  image  formats
  318. (i.e.  a line and  column  array of any size  and with  byte
  319. encoded  pixels).
  320.  
  321. The DIRECT ACCESS READ  function  samples rows and columns
  322. and can  therefore  read images larger than 1024 x 1024.
  323.  
  324. The FREE FORMAT READ  function  can read image
  325. pixel values that are either  integer  (from 1 to 32 bit) or
  326. real.  Since this menu calls up the DIRECT ACCESS READ menu,
  327. it can also  sample  images.
  328.  
  329. To  select  the file  name for reading or writing, use the
  330. DIRECTORY  CONTENTS  menu.
  331. This menu lists the files and directories contained  in the
  332. current  directory.  NOTE:  only 299 files in the  directory
  333. are  displayed.  To  change  directories,  click on the name
  334. with the left mouse  button.  One click on the "../"  symbol
  335. at the top of the  entry  list  allows  you to  climb to the
  336. directory above.  To select a file in the current directory,
  337. click  on  its  name.  You  can  also  directly   enter  the
  338. directory  and file names by typing  them into the Path Name
  339. and File  Name  boxes.  In the Path  Name box  type  "./" or
  340. $HOME, which returns you to the root or home directory.
  341.  
  342. DISPLAY MENU
  343.  
  344. The DISPLAY  submenu  controls  which image planes are
  345. displayed (R, G, B or a combination  of the three
  346. in true color  mode.  It also  controls  the  display of the
  347. COLOR MAP window (i.e.,  functions SHOW COLOR SCALE and HIDE
  348. COLOR SCALE).
  349.  
  350. The FLIP FLOP BANKS function  displays two of
  351. the three planes alternatively.  This enables you to compare
  352. images  contained  in the three  planes.
  353.  
  354. COLOR MENU
  355. ----------
  356. The COLOR submenu accesses the color manipulation functions.
  357. SAVE COLOR SCALE  attaches the color map to the image plane.
  358.  
  359. As long as this  function  is not called up,  changes in the
  360. color map remain  temporary, and upon leaving the COLOR menu
  361. the  previous  color map is  restored.
  362.  
  363. TRUE  COLOR  changes Sphinx into the true color mode 
  364. (this has the same effect as the TRUE COLOR function in 
  365. the DISPLAY menu).
  366.  
  367. STRETCH THE 8 BIT COLOR  SCALE  modifies  the color  map 
  368. (e.g.,  contrast control, min./max. scaling, brightness,etc.)
  369.  
  370. FILL LEVELS WITH COLOR creates false color images by
  371. modifying the color map by pixel value  intervals.
  372.  
  373. AUTO  INTENSITY  BALANCE and RGB MANUAL  
  374. INTENSITY  BALANCE controls the pixel values of
  375. the  planes  in true  color  mode  either  automatically
  376. or manually.
  377.  
  378. BUILD  COLOR  SCALE   creates  a  color  map  and
  379. displays  the  histogram  of the image  plane.
  380.  
  381.  
  382. EDIT MENU
  383. ---------
  384.  The EDIT submenu  contains  the  following  fundamental
  385. image  manipulation  and  text  annotation  functions.
  386.  
  387. MOVE EXCHANGE ROTATE: various functions that move, exchange,
  388. and rotate  image  areas.
  389.  
  390. IMAGE  RESIZE:  enlarges  or  reduces images.
  391.  
  392. DRAW  IMAGE  ANNOTATION:  inserts  text and  simple
  393. graphics  (e.g., lines, boxes,  symbols) in the image.
  394.  
  395. DRAW COLOR LEGEND:  creates a color legend.
  396.  
  397. GRID DRAWING:  draws grid lines.
  398.  
  399. PAGE  SETTING:  constructs  a mosaic of smaller
  400. images of any size  stored  on disk.
  401.  
  402. PIXEL  MASKING:  masks selected  areas of the image.
  403.  
  404. AREA FILLING:  fills an image area with a  selected  pixel
  405. value  color.
  406.  
  407. MERGE  TEXT AND IMAGE:  merges  together  the image plane
  408. with the  overlaid text or graphics.
  409.  
  410.  PROCESS MENU
  411.  ------------
  412.  The PROCESS  submenu accesses the mathematical processing
  413.  functions, the external functions,  and  the  animation 
  414.  functions.
  415.  
  416.  IMAGE  ALGEBRA: performs  basic  algebraic   functions
  417.  on  an  image.
  418.  
  419.  AREA STANDARD DEVIATION:  calculates the standard deviation
  420.  of an image    area.
  421.  
  422.  CONVOLUTION    PRODUCT:   calculates    the
  423. convolution product and filtering of an image area.
  424.  
  425. FOURIER TRANSFORM:  computes Fourier transform filtering 
  426. of an image area. 
  427.  
  428. STRUCTURE   FUNCTION:   calculates   the   structure
  429. function of an image area.
  430.  
  431. CLUSTER  ANALYSIS:  analyzes the cellular  structure of an
  432. image or selected area.
  433.  
  434. PRINCIPAL COMPONENTS  ANALYSIS:  analyzes the principal 
  435. components of an image. 
  436.  
  437. PIXEL  CLASSIFICATION:  classifies  pixels  using
  438. cluster  dynamics.
  439.  
  440. EXTERNAL  PROCESSES:  performs  external user-developed
  441. programs.
  442.  
  443. MOSAIC   ANIMATION:   animates images.
  444.  
  445. PLOT MENU
  446. ---------
  447. The PLOT  submenu  accesses  the following  functions
  448. to graph,  contour,  and grid  images.
  449.  
  450. REDRAW SAVED GRAPH:  redraws the previously  saved graphics.
  451.  
  452. CLEAR SAVED GRAPH:  erases the  previously  saved  graphics.
  453.  
  454. HISTOGRAM:   plots   histograms.   
  455.  
  456. RADIAL:  plots   radials.
  457.  
  458. CONTOURING:  plots contours.  
  459.  
  460. BIDIMENTIONAL PLOT:  plots two dimensional  scatter
  461. plots using two image planes.
  462.  
  463. 3 COLOR GRAPHIC:  constructs  a  scatter  plot  around 
  464. three  axes representing the red, green and blue
  465. coordinates of a pixel.
  466.  
  467. CHANGE  SAVED GRAPH  NAME:  changes the file name
  468. of a saved graphics.
  469.  
  470. IMPORT  GRAPH  FROM  FILE:  imports  an  existing
  471. graphics file (x, y ....).
  472.  
  473. PRINT MENU
  474. ----------
  475. The PRINT submenu contains the print commands for
  476. PostScript or  LaserJet  printers.  The  images  and
  477. graphics  can be printed in either color or levels of gray.
  478. Sphinx can send print jobs to the print  spooler or store
  479. the print  images in a file.
  480.  
  481.  
  482.  
  483. SIGNAL  MODELS  MENU
  484. --------------------
  485. The SIGNAL  MODELS submenu accesses the satellite signal
  486. processing functions.
  487.  
  488. GEOMETRY  MODELS MENU
  489. ---------------------
  490. The GEOMETRY  MODELS  submenu accesses the geometric
  491. image  manipulation  functions  for warping,   computing
  492. satellite  geometry  and  simulating satellite  orbits.
  493.  
  494. TESTS  MENU
  495. -----------
  496. The TEST  submenu accesses the various test functions 
  497. (image overlay, etc.).
  498.  
  499. $END ---------------------------------------------------------------------
  500. $DEB 991 000 000 000 000
  501. USING THE MOUSE
  502.  
  503. The right mouse  button is used to display  the pop-up  main
  504. menu and to select  image  areas.  The left mouse  button is
  505. used  within the menus and dialog  boxes.  The middle  mouse
  506. button, when it is present, is not utilized by Sphinx.
  507.  
  508. $END ---------------------------------------------------------------------
  509. $DEB 992 000 000 000 000
  510. SPHINX MAIN MENU
  511.  
  512. The Sphinx main menu is not displayed  continuously  so that
  513. the  IMAGE  window  is not  obstructed.  To make it  appear,
  514. press on the right mouse  button  without  letting  go.  The
  515. Sphinx  menu  contains   listings  that  either  access  the
  516. submenus (indicated by arrows) or activate the corresponding
  517. functions.
  518.  
  519. To access a  submenu,  place the mouse on the right  part of
  520. the  desired  listing  (over  the  arrow).  This  makes  the
  521. corresponding  submenu  appear  from which you can  select a
  522. function.  When you  have  selected  the  desired  function,
  523. release the mouse button.
  524.  
  525.   The main menu can be  called up from the  function  dialog
  526. boxes by clicking  with the right  button on the Sphinx MENU
  527. window  located  on the  lower  right  of the  screen.  This
  528. allows you to execute another function, and after this funct
  529. ion is  executed,  Sphinx  returns to the initial  box.  For
  530. instance, if you are in a dialog box and you want to measure
  531. a pixel  value,  you click on the  Sphinx  MENU  window  and
  532. select the PIXEL VALUES function.  This mechanism allows
  533. you to queue up to nine function requests.
  534.  
  535.  
  536. $END ---------------------------------------------------------------------
  537. $DEB 993 000 000 000
  538. THE FUNCTION DIALOG BOXES
  539.  
  540.  Most Sphinx functions begin by displaying a dialog box that
  541. allows you to specify various  parameters  (e.g., file names
  542. and sizes, image planes, quadrants, etc.).  If you need help
  543. using a function  dialog,  click the left  button on the "?"
  544. icon  located  to the  right of the title  bar.  To move the
  545. dialog  box, place the mouse arrow on the title bar and hold
  546. down  the left  mouse  button.  Then  move the  mouse to the
  547. desired screen position.
  548.  
  549. You can also move the dialog box by clicking  the left mouse
  550. button on the "X" icon located to the left of the title bar.
  551. This will  automatically  move the  dialog  box to the right
  552. side of the screen.  Clicking again on this icon will return
  553. the dialog box to its initial  position.  All dialog  boxes
  554. include an EXIT  button.  To exit a function,  click on this
  555. button using the left mouse button.
  556.  
  557. Certain  dialogs include an EXECUTE or RUN button.  In these
  558. boxes you can input various  options  before  executing  the
  559. function by clicking  the button.  As mentioned  above, from
  560. all the  dialog  boxes  you can  call up the  main  menu  by
  561. clicking on the Sphinx MEN U window with the right button.
  562.  
  563. ON-LINE HELP
  564.  You can access the  on-line  help by using  either the HELP
  565. submenu or the "?"  icon in each dialog box.  From the HELP
  566. submenu,  you can select the  desired  topic.  Using the "?"
  567. icon in each dialog box, you directly access the description
  568. of that  function.  The help boxes  contain a NEXT button to
  569. advance  to the  subsequent  instruction  page,  a
  570. PREVIOUS button to return to the previous page, and an
  571. EXIT button to quit the on-line help.
  572.  
  573. You must click these  buttons  using the left mouse  button.
  574. NOTE:  when a help dialog box is displayed, the other dialog
  575. boxes as well as the Sphinx  main menu are not  active.  You
  576. must leave the on-line  help (by clicking the EXIT button in
  577. the box) in order to redisplay the other Sphinx functions.
  578. $END ---------------------------------------------------------------------
  579. $DEB 994 000 000 000
  580. MAIN FUNCTIONS
  581.  
  582.  From the  main  menu  you can  directly  access  the  PIXEL
  583.  VALUES,  ZOOM, REFRESH and ICONIFY  Sphinx  functions.
  584.  
  585.  The other  functions are accessed  through the submenus. 
  586.  
  587.  PIXEL VALUES  determines  the  value  of a pixel. 
  588.  
  589.  ZOOM  enlarges specific  image areas on the screen. 
  590.  
  591.  REFRESH redraws the screen and  clears the  overlay  plane.
  592.  
  593.  The FILE  submenu reads and  writes  image and color  table
  594.  files as well as contour and annotation files.
  595.  It also allows you to save a work  session  that can be
  596.  continued at a later time.
  597.  
  598.  The DISPLAY submenu  controls the choice of the plane
  599.  displayed (R, G, B or a combination of the three planes in
  600.  true color mode).  It also  controls  the  display  of the
  601.  COLOR  MAP window.
  602.  
  603.  The COLOR submenu accesses the color  manipulation
  604.  functions.
  605.  
  606.  The  EDIT  submenu  accesses  the  basic  image
  607.  manipulation  functions and the annotation  functions.
  608.  
  609.  The PROCESS  submenu  contains the mathematical processing
  610.  functions,  the  external   functions,  and  the  animation
  611.  functions.
  612.  
  613.  The PLOT submenu  accesses  functions to graph,
  614.  contour, and grid.
  615.  
  616.  The PRINT submenu accesses the printing functions to print
  617.  on PostScript or LaserJet printers.
  618.  
  619.  The SIGNAL MODELS submenu accesses the  satellite   signal
  620.  simulation  functions.
  621.  
  622.  The  GEOMETRY  MODELS  accesses the geometric  manipulation
  623.  functions,   such  as   warping, satellite  geometry and 
  624.  orbit simulation.
  625.  
  626.  The HELP submenu accesses the on-line help by topic.
  627.  
  628. $END ---------------------------------------------------------------------
  629. $DEB 901 000 000 000 000
  630. FILE MENU
  631.  
  632. The FILE submenu reads and writes files  containing  images,
  633. color maps,  annotations  and contours.  It also allows you
  634. to save a work session that can be continued later.
  635.  
  636. The SIMPLE FILE READ  function  reads  basic  image  formats
  637. (i.e.  a line and  column  array of any size  and with  byte
  638. encoded  pixels).
  639.  
  640. The DIRECT ACCESS READ  function  samples rows and columns
  641. and can  therefore  read images larger than 1024 x 1024.
  642.  
  643. The FREE FORMAT READ  function  can read image
  644. pixel values that are either  integer  (from 1 to 32 bit) or
  645. real.  Since this menu calls up the DIRECT ACCESS READ 
  646. menu, it can also  sample  images.
  647.  
  648. To  select  the file  name for reading or writing, use the
  649. DIRECTORY  CONTENTS  menu.
  650. This menu lists the files and directories contained  in the
  651. current  directory.  NOTE:  only 299 files in the  directory
  652. are  displayed.  To  change  directories,  click on the name
  653. with the left mouse  button.  One click on the "../"  symbol
  654. at the top of the  entry  list  allows  you to  climb to the
  655. directory above.  To select a file in the current directory,
  656. click  on  its  name.  You  can  also  directly   enter  the
  657. directory  and file names by typing  them into the Path Name
  658. and File  Name  boxes.  In the Path  Name box  type  "./" or
  659. $HOME, which returns you to the root or home directory.
  660.  
  661. $END ---------------------------------------------------------------------
  662. $DEB 902 000 000 000 000
  663. DISPLAY MENU
  664.  
  665. The DISPLAY  submenu  controls  which image planes are
  666. displayed (R, G, B or a combination  of the three in true
  667. color  mode.  It also  controls  the  display of the COLOR
  668. MAP window (i.e.,  functions SHOW COLOR SCALE and
  669. HIDE COLOR SCALE).
  670.  
  671. The FLIP FLOP BANKS function  displays two of the three
  672. planes alternatively.  This enables you to compare
  673. images  contained  in the three  planes.
  674.  
  675. $END ---------------------------------------------------------------------
  676. $DEB 903 000 000 000 000
  677. COLOR MENU
  678.  
  679. The COLOR submenu accesses the color manipulation functions.
  680. SAVE COLOR SCALE  attaches the color map to the image plane.
  681. As long as this  function  is not called up,  changes in the
  682. color map remain  temporary, and upon leaving the COLOR menu
  683. the  previous  color map is  restored.
  684.  
  685. TRUE  COLOR  changes Sphinx into the true color mode 
  686. (this has the same effect as the TRUE COLOR function in 
  687. the DISPLAY menu).
  688.  
  689. STRETCH THE 8 BIT COLOR  SCALE  modifies  the color  map 
  690. (e.g.,  contrast control, min./max. scaling, brightness,etc.)
  691.  
  692. FILL LEVELS WITH COLOR creates false color images by
  693. modifying the color map by pixel value  intervals.
  694.  
  695. AUTO  INTENSITY  BALANCE and RGB MANUAL  INTENSITY  BALANCE
  696. controls the pixel values of the  planes  in true  color
  697. mode  either  automatically  or manually.
  698.  
  699. BUILD  COLOR  SCALE   creates  a  color  map  and
  700. displays  the  histogram  of the image  plane.
  701.  
  702. $END ---------------------------------------------------------------------
  703. $DEB 904 000 000 000 000
  704.  
  705.  EDIT MENU
  706.  
  707.  The EDIT submenu  contains  the  following  fundamental
  708. image  manipulation  and  text  annotation  functions.
  709.  
  710. MOVE EXCHANGE ROTATE: various functions that move, 
  711. exchange, and rotate  image  areas.
  712.  
  713. IMAGE  RESIZE:  enlarges  or  reduces images.
  714.  
  715. DRAW  IMAGE  ANNOTATION:  inserts  text and  simple
  716. graphics  (e.g., lines, boxes,  symbols) in the image.
  717.  
  718. DRAW COLOR LEGEND:  creates a color legend.
  719.  
  720. GRID DRAWING:  draws grid lines.
  721.  
  722. PAGE  SETTING:  constructs  a mosaic of smaller
  723. images of any size  stored  on disk.
  724.  
  725. PIXEL  MASKING:  masks selected  areas of the image.
  726.  
  727. AREA FILLING:  fills an image area with a  selected  pixel
  728. value  color.
  729.  
  730. MERGE  TEXT AND IMAGE:  merges  together  the image plane
  731. with the  overlaid text or graphics.
  732.  
  733. $END ---------------------------------------------------------------------
  734. $DEB 905 000 000 000 000
  735.  Process Menu
  736.  
  737.  The PROCESS  submenu accesses the mathematical processing
  738.  functions, the external functions,  and  the  animation 
  739.  functions.
  740.  
  741.  IMAGE  ALGEBRA: performs  basic  algebraic   functions
  742.  on  an  image.
  743.  
  744.  AREA STANDARD DEVIATION:  calculates the standard 
  745.  deviation of an image    area.
  746.  
  747.  CONVOLUTION    PRODUCT:   calculates    the
  748. convolution product and filtering of an image area.
  749.  
  750. FOURIER TRANSFORM:  computes Fourier transform
  751. filtering of an image area. 
  752.  
  753. STRUCTURE   FUNCTION:   calculates   the   structure
  754. function of an image area.
  755.  
  756. CLUSTER  ANALYSIS:  analyzes the cellular  structure of an
  757. image or selected area.
  758.  
  759. PRINCIPAL COMPONENTS  ANALYSIS:  analyzes the principal 
  760. components of an image. 
  761.  
  762. PIXEL  CLASSIFICATION:  classifies  pixels  using
  763. cluster  dynamics.
  764.  
  765. EXTERNAL  PROCESSES:  performs  external user-developed
  766. programs.
  767.  
  768. MOSAIC   ANIMATION:   animates images.
  769.  
  770. $END ---------------------------------------------------------------------
  771. $DEB 906 000 000 000 000
  772.  Plot Menu
  773.  
  774. The PLOT  submenu  accesses  the following  functions
  775. to graph,  contour,  and grid  images.
  776.  
  777. REDRAW SAVED GRAPH:  redraws the previously  saved graphics.
  778.  
  779. CLEAR SAVED GRAPH:  erases the  previously  saved  graphics.
  780.  
  781. HISTOGRAM:   plots   histograms.   
  782.  
  783. RADIAL:  plots   radials.
  784.  
  785. CONTOURING:  plots contours.  
  786.  
  787. BIDIMENTIONAL PLOT:  plots two dimensional  scatter
  788. plots using two image planes.
  789.  
  790. 3 COLOR GRAPHIC:  constructs  a  scatter  plot  around 
  791. three  axes representing the red, green and blue coordinates
  792. of a pixel.
  793.  
  794. CHANGE  SAVED GRAPH  NAME:  changes the file name of a saved
  795. graphics.
  796.  
  797. IMPORT  GRAPH  FROM  FILE:  imports  an  existing graphics
  798. file (x, y ....).
  799.  
  800. $END ---------------------------------------------------------------------
  801. $DEB 907 000 000 000 000
  802.  
  803. Print Menu
  804.  
  805. The PRINT submenu contains the print commands for PostScript
  806.  or  LaserJet  printers.  The  images  and  graphics  can be
  807.  printed in either color or levels of gray.  Sphinx can send
  808.  print jobs to the print  spooler or store the print  images
  809.  in a file.
  810.  
  811. $END ---------------------------------------------------------------------
  812. $DEB 912 000 000 000 000
  813. Signal  Models  Menu
  814.  
  815. The SIGNAL  MODELS submenu accesses the satellite signal
  816. processing functions.
  817.  
  818. $END ---------------------------------------------------------------------
  819. $DEB 913 000 000 000 000
  820. Geometry  Models Menu
  821.  
  822. The GEOMETRY  MODELS  submenu accesses the geometric
  823. image  manipulation  functions  for warping,   computing
  824. satellite  geometry  and  simulating satellite  orbits.
  825.  
  826. $END ---------------------------------------------------------------------
  827. $DEB 914 000 000 000 000
  828. Tests  Menu
  829.  
  830. The TEST  submenu accesses the various test functions 
  831. (image overlay, etc.).
  832.  
  833. $END ---------------------------------------------------------------------
  834. $DEB 602 000 000 000 000Merge Text and Image
  835.  This function merges the graphics  overlay plane with
  836.  the image plane.  The overlay plane contains the collection
  837.  of annotations created using DRAW IMAGE ANNOTATIONS, masks
  838.  created  using PIXEL  MASKING, the contours  created  using
  839.  CONTOURING,  the grids  created  using GRID DRAWING and the
  840.  contours read by CONTOUR RESTORE.
  841.  
  842.  For images  displayed  in false  color, all the pixel values
  843.  above 249 are assigned the value 249, and then a specialized
  844.  scale is used for the interval 250 to 255 in order to define
  845.  the overlay  graphics  colors.  If this color scale is lost,
  846.  the function INSE RT GRAPHIC SCALE under the "Test"  submenu
  847.  will  recreate it without  altering  the image.
  848.  
  849. $END ---------------------------------------------------------------------
  850. $DEB 100 000 000 000 000Image (Read from disk)
  851.  This function reads 8-bit images (scaling them to 512 or
  852.  1024)  that  do not  incorporate  record  headers but file
  853.  header.
  854.  Images that do not meet this  specification  should be read
  855.  using the FREE FORMAT READ or DIRECT ACCESS READ 
  856.  functions.
  857.  
  858.  Choose the file name by filling the PATH NAME and FILE NAME
  859.  or by  selecting in the  DIRECTORY  CONTENTS  menu and then
  860.  clicking  once on READ FILE.
  861.  Sphinx  analyzes the file and determines  the image size 
  862.  (Sphinx  determines  if the file size is the  square  of
  863.  a number  that  would  compose  the number of rows and 
  864.  columns of an image).  If Sphinx  cannot determine the
  865.  image size, or if the  calculated  image size is  incorrect
  866.  (for  instance  512 x 512  for a 1024  x 256 image), 
  867.  you can modify it by explicitly  filling in the "Nb lines" 
  868.  and "Nb columns" boxes.  (To help determine the file size,
  869.  the user can create an external file (".sphinx_ fmt") that
  870.  is  stored  in the home  directory  and that  contains
  871.  several  lines  with  common  format  dimensions  ("Nb Lines"
  872.  "Nb columns", "header   size").
  873.  For  instance,   create  the  file:  vi .sphinx_fmt
  874.     288 384 0
  875.     512 411 112  etc.
  876.  
  877.  The  VISIBLE  and MASKED  option  boxes allow you to place
  878.  the file read into either  the  visible (A, B, C, D) or
  879.  masked  (E, F, G, H) quadrants.
  880.  The A, B, C, D or E, F, G, H options (according to the 
  881.  VISIBLE or MASKED  options  selected)  indicate  the
  882.  quadrant  into which the image is  loaded.
  883.  The RED,  GREEN and  BLUE option  buttons  allow  you to 
  884.  choose the plane into which the image is loaded. 
  885.  The RGBCM option simultaneously loads the three R, G, B
  886.  image  planes  and the color map if the  corresponding
  887.  files are present (suffixes R, G, B and CM).
  888.  The EXPAND  option  enlarges the image to 1024 x 1024
  889.  by  duplicating  points.
  890.  The UP/DOWN,  LEFT/RIGHT  options inverts and reverses
  891.  the image placement.
  892.  
  893.  Clicking a second time on READ FILE initiates the loading of
  894.  the image into the plane and  quadrant  specified.
  895.  
  896.  WARNING: the image does not appear immediately on the screen
  897.  if it is read into a plane other than the one currently  
  898.  displayed or into a masked quadrant.  To display  it, 
  899.  depending  on the situation,  you must  change the displayed
  900.  plane  (DISPLAY menu) or  transfer  the image to a  visible 
  901.  quadrant  (EDIT menu).
  902.  
  903.  WARNING:  a displayed image will not appear correctly on the
  904.  screen if the color map is not appropriately  adapted to the
  905.  image.  If, for instance, you read an image containing pixel
  906.  values equal to either 0 or 1 and you display the image with
  907.  a color  map ad apted for  continuous  shades  of gray,  the
  908.  image will display as a uniformly black image since there is
  909.  no scaling  between the 0 or 1 values. 
  910.  
  911.  To display the image correctly, you must  first  modify 
  912.  the color map using the HISTOGRAM STRETCH function.
  913.  
  914.  Image files produced by Fortran programs:
  915.  The files produced by Fortran programs contain at the
  916.  beginning  and the end of each record a 4-byte word 
  917.  that indicates  the length.  A file  containing a n x n 
  918.  image and written in one single  record will have a size
  919.  equal to (( 4 + n) x (n + 4)) bytes.
  920.  
  921.  The Sphinx READ FILE  function  takes this  procedure  into
  922.  account  before  reading an image file.  Sphinx  determines
  923.  the size of the file (i.e., size_file) and reads the values
  924.  in  the   first  4  bytes   (i.e.,   size_header).  If  the
  925.  size_header is equal to size_file - 8, Sphinx  assumes that
  926.  the  file   contains  an  image  whose  size  is  given  by
  927.  size_header  and that begins at the forth byte of the file.
  928.  To facilitate the exchange of images between  machines that
  929.  do not  employ  the same bit order  representations  within
  930.  words (high end bits first or last), Sphinx  analyzes the 4
  931.  bytes  written  according to the two possible  orders.  One
  932.  can then read, for instance, on a RS 6000 a file  produced
  933.  on  a  DecStation.
  934.  
  935.  WARNING:  images  produced  by  Fortran programs  but 
  936.  written in several  segments  must be read by FREE  
  937.  FORMAT  READ to enable  Sphinx to ignore the  written
  938.  byte  length.
  939. $END ------------------------------------------------------
  940. $DEB 101 000 000 000 000Image (Write to disk)
  941.  Choose the file name by filling  in  the  PATH  NAME
  942.  and  FILE  NAME  boxes  or by selecting  it in the
  943.  DIRECTORY  CONTENTS.  
  944.  The  A, B, C, D options indicate which image quadrant
  945.  is written.  The 1024 option  allows  you to write  the
  946.  complete  image.  If you choose the 1024  option,  the
  947.  REDUCE  option  allows you to decrease  the  written
  948.  image  size to 512 x 512.  The RED, GREEN and BLUE
  949.  options tell Sphinx which plane contains the image for
  950.  writing.
  951.  The  COMPRESS  option box allows you to write  in
  952.  compressed format.  
  953.  The  "Nb  lines"  and  "Nb columns" boxes give you
  954.  the option to write  format  sizes other  than 
  955.  512 x 512 or 1024 x 1024.
  956.  Click on WRITE  FILE to begin  writing.
  957.  WARNING:  if the file  already  exists, the writing
  958.  cannot taking place.  The dialog box, however, provides
  959.  an OVERWRITE  FILE option, which can be activated by
  960.  clicking  once  upon  YES and  then  upon  WRITE  FILE.
  961. $END ---------------------------------------------------------------------
  962. $DEB 103 000 000 000 000Color map (Restore from disk)
  963.  This function reads a color map file and updates the 
  964.  color maps associated with the three R, G, B image planes.
  965.  
  966.  The color map files  contain  4608 bytes or 3 color  maps 
  967.  of 1536 bytes (one for the BLUE plane, one for the 
  968.  GREEN plane, and one for the RED  plane).
  969.  Each color map  consists  of 3 series of 512 bytes with
  970.  the first  containing 256 levels of red (each one encoded
  971.  in 2 bytes),  the  second  containing 256 levels of green,
  972.  and the third  containing 256 levels of blue.
  973.  The Sphinx utility directory contains the source code
  974.  of the two utilities: print_cm.c and build_cm.c.
  975.  Print_cm produces  an ASCII  image of a color map file,
  976.  and  build_cm constructs  a color map file from an ASCII
  977.  image.  The ASCII files  created by print_cm and read
  978.  by build_cm are composed of lines  having the  format:
  979.   p iii rrr ggg bbb,  where
  980.     -plane (R, G, or B)
  981.      -table index (from 0 to 255)
  982.      -levels of red (from 0 to 255)
  983.      -levels of green (from 0 to 255)
  984.      -levels of blue (from 0 to 255)
  985. $END ---------------------------------------------------------------------
  986. $DEB 104 000 000 000 000Color map (Save to disk)
  987.  
  988. This  function  writes a color map file from the
  989. color maps associated with the three R, G, B planes.
  990.  
  991. $END ---------------------------------------------------------------------
  992. $DEB 106 000 000 000 000Annotations (Restore from disk)
  993. This function loads the table  files  used by the image  
  994. annotation  functions.
  995. The table files allow you to use 50 different text and
  996. 50 symbol graphics.
  997. $END ---------------------------------------------------------------------
  998. $DEB 107 000 000 000 000Annotations (Save to disk)
  999. This function writes to disk the table files used
  1000. by the image annotation functions.
  1001.  
  1002. $END ---------------------------------------------------------------------
  1003. $DEB 109 000 000 000 000Contour (Restore from disk)
  1004.  This function  reads contour files (see CONTOUR SAVE
  1005.  function).  A contour  file' s contents are  overlaid on an
  1006.  image.  The contours themselves are simply superimposed
  1007.  upon the image  without  masking it. 
  1008.  They can be erased  without erasing  the  image  by  using 
  1009.  the  REFRESH   function.
  1010.  To incorporate the contours into the image, use the 
  1011.  MERGE TEXT &  IMAGE  function  in the  EDIT  menu.  
  1012.  
  1013.  To create a contour  using a binary image, such as a contour
  1014.  map, you must  first read a binary  image.  Next  create a
  1015.  mask corresponding to the points of the contour map (PIXEL
  1016.  function from the EDIT menu), and then save the mask using
  1017.  CONTOUR  SAVE.
  1018.  To  create a  contour  file from  contours calculated  by
  1019.  Sphinx on an image,  use the PLOT  menu' s CONTOURING
  1020.  function  and  then  save the  contours  using CONTOUR SAVE.
  1021. $END ---------------------------------------------------------------------
  1022. $DEB 110 000 000 000 000Contour (Save to disk)
  1023. This function  writes  contour  files  from  the  contents
  1024. of  a selected  image  plane.
  1025. The plane can  contain  text  added using DRAW IMAGE 
  1026. ANNOTATIONS,  masks  created  using  PIXEL MASKING,
  1027. contours created using CONTOURING, grids produced
  1028. using GRID DRAWING and contours read using CONTOUR
  1029. RESTORE.
  1030. The saved contour files can be  superimposed  upon the
  1031. image (see CONTOUR RESTORE FUNCTION function).
  1032.  
  1033.  
  1034. $END ---------------------------------------------------------------------
  1035. $DEB 112 000 000 000 000Session  ( Restore)
  1036.   This  function  restores a previously  saved  work  session
  1037.   (cf.  function   SAVE SESSION).
  1038. $END ---------------------------------------------------------------------
  1039. $DEB 113 000 000 000 000Session  (Save)
  1040.   This   function   saves  a  work session.
  1041.   The session can be  restored  later by using the
  1042.   RESTORE  SESSION  function.  The name of the save
  1043.   file is fixed, having the root name "Save_cont...".
  1044.  
  1045. $END ---------------------------------------------------------------------
  1046. $DEB 115 000 000 000 000Direct Access File (Read from disk)
  1047.   This  function  allows you to select and read a 512 x 512
  1048.   or 1024 x 1024 area in an image file of any size.  
  1049.   Once the  file is  selected, click  on  READ  FILE.
  1050.  
  1051.   Sphinx begins by reading  the first two  integers  of the
  1052.   file to determine the image size.
  1053.   If this information is missing, two boxes  appear on the
  1054.   screen for entering the number of lines and  columns of
  1055.   the image .  The SHOW  GLOBAL  IMAGE option  displays
  1056.   an entire  512 x 512 image area in the A quadrant. 
  1057.   Before  clicking  on READ FILE, you must  first select 
  1058.   the image size, the image  plane and  quadrant  for
  1059.   display,  the starting  line, the line step, the  starting
  1060.   column, and the column step.
  1061.  
  1062. SELECT  can be used to define  the  starting  point.  Sphinx
  1063. takes into  consideration  the image  size and the  selected
  1064. line and column  step  samplings.  By moving  the mouse over
  1065. the  A  quadrant,  a  window  displaying  the  size  of  the
  1066. corresponding  image  area  appears.
  1067. A click on the right button   fills  the   parameter   boxes
  1068. with  the   values corresponding  to the selected  area.
  1069.  
  1070. $END ---------------------------------------------------------------------
  1071. $DEB 117 000 000 000 000Free Image Format (Read from disk)
  1072. This function  reads image files having various  formats,
  1073. and it allows  you to sample  the  lines and columns and
  1074. scale the image to 8 bits.  As an example, one can use this
  1075. function to read a file containing several channels.
  1076. The first step decodes the file.
  1077. The dialog box allows you to specify  the data  unit  size
  1078. (bit  or  byte)  and  the  following  file structure:
  1079. - the image  structure:  pixel length, number of lines  and
  1080.   columns,  data type  (integer  or real) 
  1081. - header offset, record length 
  1082. - record structure:  header record and trailer  record
  1083.  
  1084. The SWAP LOW AND HIGH  option  allows you to swap high end
  1085. and low end bits.  The HIGH BYTE option allows you to read
  1086. only the  high end  bits.  The LOW BYTE  option allows you
  1087. to read only the low end bits.
  1088.  
  1089. The SCALE TO 8 BITS  option  allows  you to scale  the pixel
  1090. values  over 8 bits.  For this  case, if the "MIN" and "MAX"
  1091. boxes are  empty, an  initial  reading  will find the  exact
  1092. minimum   and   maximum   values  as  well  as  the   values
  1093. representing  1% and 99% of the pixels.  The  exact  values
  1094. are  displayed  in the "MIN" and "MAX" box.  You can  modify
  1095. these  entries  directly  or by  clicking  on the 1% and 99%
  1096. values displayed  below.  A second reading decodes the image
  1097. file and  recalculates  the pixel values between the minimum
  1098. and maximum values specified.
  1099.  
  1100. For instance, to read a file containing a 16-bit 1250 x 1250
  1101.  image having a 4-byte  header in which each line is written
  1102.  in one 2500 byte record, you must enter the  specifications
  1103.  for a 4-byte  header and a pixel  length of 2 with 1250 
  1104.  "Nb lines" and 1250 "Nb  columns".
  1105.  This  first step  creates a /[tmp]/sphiNx_crt0 file in 
  1106.  standard image format that can be read by the  DIRECT
  1107.  ACCESS  READ  function  whose  menu is called up  
  1108.  automatically.  You can of course  select  image
  1109.  parts and sample the image by  skipping  lines and  columns
  1110.  (see information on the DIRECT ACCESS READ function).
  1111. $END ---------------------------------------------------------------------
  1112. $DEB 119 120 000 000 000TIFF Image Format (Read/Write)
  1113.  This function  reads or writes Images ( 8 or 24 bit ).  Each
  1114.  file contains the image  associated  with its LUT,  creation
  1115.  date, author name and comments in compressed or 
  1116.  uncompressed format. 
  1117.  
  1118.  N.B.  this   function  is  useful  to  read  images
  1119.     created by an Apple Scanner.
  1120.  
  1121. $END ---------------------------------------------------------------------
  1122. $DEB 122 123 000 000 000 GIF Image Format (Read/Write)
  1123.  This  function  reads or writes 8 bit  images in  compressed
  1124.  format with its LUT.
  1125.  
  1126. $END ---------------------------------------------------------------------
  1127. $DEB 200 300 000 000 00024 bit true color
  1128. Displays on the screen an image  obtained by  combining  the
  1129.    color  values  contained in the three R, G, B planes.  On
  1130.    machines   limited  to  8  color  planes  (256  different
  1131.    colors),  Sphinx  approximates  the true color by using a
  1132.    3/3/2 coding.
  1133.  
  1134. $END ---------------------------------------------------------------------
  1135. $DEB 201 202 203 000 000Show (blue bank : green bank : red bank)
  1136.    Show Blue Bank  Displays on the screen the
  1137.    image  contained in the B plane.  The image is  displayed
  1138.    using  the color map  associated  with the B plane.
  1139.  
  1140.    Show Green Bank Displays on the screen the image
  1141.    contained in the G plane.  The image is displayed 
  1142.    using the color map associated  with the G plane.
  1143.  
  1144.    Show Red Bank  Displays on the screen the image contained
  1145.    in the R plane.  The image is displayed  using the 
  1146.    color map  associated  with the R plane.
  1147.  
  1148. $END ---------------------------------------------------------------------
  1149. $DEB 205 206 000 000 000Scale (Show : Clear)
  1150.    A  scale  showing  the  color associated  with each  
  1151.    pixel  value is  displayed  in the COLOR  SCALE  
  1152.    window  (to the right of the IMAGE  window)
  1153.    WARNING:  when  Sphinx is in true  color  mode, the scale
  1154.    displayed has no significance.
  1155.  
  1156.    Hide Color Scale The scale  showing the color  associated
  1157.    with each pixel value is erased.
  1158.  
  1159. $END ---------------------------------------------------------------------
  1160. $DEB 208 000 000 000 000Flip-Flop banks
  1161.  
  1162. This  function  allows  you  to  display  two  image  planes
  1163. alternatively.  To  activate  the  function,  click  on  the
  1164. desired change.  After a brief delay, a message in the lower
  1165. right  indicates  the action to take.  Keep the right button
  1166. pressed  down and change  the flip speed by moving the mouse
  1167. up or down on the screen, with the higher  being  faster and
  1168. the lower  slower.
  1169.  
  1170. $END ---------------------------------------------------------------------
  1171. $DEB 314 000 000 000 000
  1172. SAVE COLOR SCALE  attaches the color table to the  image
  1173. plane.
  1174.  
  1175. $END ---------------------------------------------------------------------
  1176. $DEB 301 302 000 000 0008 bit (grey scale :  color scale ( sharp, smooth ))
  1177. When a plane is displayed,  Sphinx  changes into false color
  1178. mode.  An image  pixel value is an index of the red,  green,
  1179. and blue  intensities  that make up the color  displayed for
  1180. that point.
  1181. There is a maximum of 250 possible  colors (six
  1182. pixel  values  are  sav ed  for X 11,  although  the  output
  1183. results are  displayed in 256 colors).  For gray scales, the
  1184. three  RGB  planes  have  the  same  value.  For  color,  an
  1185. artificial   scale  is  created.  
  1186.  
  1187. $END ---------------------------------------------------------------------
  1188. $DEB 303 000 000 000 000 Other  Color  Scales  
  1189.  
  1190. This function allows you to select a color map from a
  1191. pre-defined selection.
  1192.  
  1193. $END ---------------------------------------------------------------------
  1194. $DEB 310 000 000 000 000Build Color Scale
  1195. This function modifies the color scale using a histogram and
  1196. line  graphs  of the  three  R, G, B color  components.  The
  1197. histogram  of the image plane is  displayed  in black at the
  1198. bottom of the graph, and the 3 components of the color scale
  1199. are  displayed in red , green and blue. 
  1200. The X axis  denotes the pixel  values  (0-255) and the Y axis
  1201. denotes the color intensity.
  1202. The  right  mouse b utton  draws  straight  line segments,
  1203. while  the left  button  draws  curves.  When the graph is
  1204. drawn (in black), it can be applied to a section of
  1205. the color table by clicking  "R", "G" or "B".  The result is
  1206. immediately  displayed.  The  "Gray" box  applies  the sa me
  1207. values  to the three RGB  components.  The "C" box exits the
  1208. function.  Note:  also  see  in  the  Sphinx  utilities  the
  1209. build_cm   utility  which   constructs  a  color  map  using
  1210. pre-defined  values.
  1211.  
  1212. $END ---------------------------------------------------------------------
  1213. $DEB 305 000 000 000 000Stretch the 8 bit color scale
  1214. Sphinx provides  the  possibility  of:
  1215. - modifying  high  values
  1216. - modifying  low values
  1217. - rotating  the scale
  1218. - inverting  the scale  upside-down
  1219. - modifying  the scale by  equalizing  a number  of  pixels
  1220.    by  class
  1221. - modifying   the  scale  by performing a histogram stretch
  1222.  
  1223.  To modify the high (or low)  values,  place the  cursor on the
  1224.  maximum (or minimum) and then click the right mouse  button.
  1225.  The new scale is  immediately  displayed.  By continuing  to
  1226.  press  the  right  button  and  moving  it up or down on the
  1227.  screen, you can visualize a sliding  scale.  All the points
  1228.  located beyond boundaries appear in black or white according
  1229.  to the option selected.
  1230.  
  1231.   You can adjust the color  intensity  of the scale  using the
  1232.   BRIGHTNESS  TUNE function.  The intensity is multiplied by
  1233.   a coefficient  dependent  upon the cursor  position on the
  1234.   screen:  lighter  toward  the top and  darker  toward  the
  1235.   bottom.  
  1236.  
  1237.   EQUALIZE  STRETCH  queries you to select an area.
  1238.   Sphinx  creates  a  histogram  of the  selected  area  and
  1239.   constructs  groups of pixel  classes  for which each class
  1240.   consists  of the same  number  of  pixels.  The color  map
  1241.   reflects   the  groups  of  point   classes.  After   this
  1242.   transformation  within the  selected  section,  each level
  1243.   corresponds  to the same  number of points.  A look at the
  1244.   COLOR MAP window illustrates the transformation.
  1245.  
  1246.   HISTOGRAM  STRETCH  queries  you to  select an area. 
  1247.   Sphinx examines the pixel values to determine  the dynamic
  1248.   range of the area  (minimum  and  maximum  pixel  values of
  1249.   the area: vmin and vmax).  The color map is  adjusted  so
  1250.   that  values from 0 to  vmin-1  are assigned to 0,  values
  1251.   from vmin to vmax are assigned  values between 0 and 255,
  1252.   and values from vmax+1 to 255 are assigned to 255.  
  1253.   The result  improves the contrast of the area selected but
  1254.   at the expense of the rest of the  image.  A look at the
  1255.   COLOR MAP  window  illustrates this transformation.
  1256.  
  1257.   SAVE COLOR SCALE  attaches the color table to the  image
  1258.   plane.
  1259.  
  1260. $END ---------------------------------------------------------------------
  1261. $DEB 306 000 000 000 000Fill  Levels  With  Color
  1262. This function   creates an  artificial color scale. Begin  by
  1263. selecting  a fill  color.  Then place the mouse in the COLOR
  1264. MAP  window.  By keeping the right  button  pressed,  Sphinx
  1265. fills in the  corresponding  pixels with the selected color.
  1266. If you make a mistake, the PREVIOUS  SCALE button reverts to
  1267. the previous table.  To help identify the pixel classes, you
  1268. can  determine  a pixel  value by placing  the cursor on the
  1269. image and pushing  the right  button.  The best  results are
  1270. achieved by starting with a scale in shades of gray and then
  1271. coloring  the value  ranges. 
  1272. SAVE COLOR SCALE  attaches the color table to the image
  1273. plane.
  1274.  
  1275. $END ---------------------------------------------------------------------
  1276. $DEB 308 000 000 000 000RGB intensity balance (Auto)
  1277. In the case of images displayed in true color,
  1278. the only way to modify the contrast is to change 
  1279. the pixel  values of the image.
  1280. This function  automatically  balances the three RGB
  1281. planes by performing histograms on a area selected with 
  1282. the mouse.  The result is displayed in the same area.
  1283. If the  transformation is judged  satisfactory,  then it 
  1284. can be applied to the entire image or to a given quadrant.  
  1285. SELECT allows you to select a new area.
  1286. GRAPH:  displays  the histograms  before  and  after
  1287. the  transformations.
  1288. Three parameters allow you to modify the results:
  1289.     Brightness: from 0 to 100
  1290.     %lower:  is the  percentage  of  minimum value pixels
  1291.              representing  the zero  function  value.
  1292.     %upper:  is the  percentage  of  maximum value pixels
  1293.              representing  the  highest  function  value.
  1294.  
  1295. $END ---------------------------------------------------------------------
  1296. $DEB 309 000 000 000 000RGB intensity balance (Manual)
  1297. For images  displayed  in true color, the only way to modify
  1298. the  contrast  is to  change  the  pixel values of the image.
  1299. Using a 384 x 384 area selected by the user,
  1300. this  function  manually  allows you to:
  1301. - select an area.
  1302. - plot the  histograms  for the three RGB  planes.
  1303. - modify the  histograms.
  1304.   For each color  place the cursor on the corresponding 
  1305.   histogram (the values are displayed at the bottom of 
  1306.   the scale) and then click to change the minimum or 
  1307.   maximum  frequencies.  The  compressed  or  stretched
  1308.   color scale is displayed in the selected area. 
  1309. - add or subtract a  constant.
  1310.  
  1311. As above, by  positioning  the  cursor  on the histogram  of
  1312. the  corresponding  color,  the  value of this constant  is
  1313. displayed  at the  bottom of the  scale.  The value is between
  1314. -39 and 300.  The result is  displayed  in the   window,
  1315. and  if  it  is   satisfactory,   the   same transformation
  1316. can be applied  to the entire  image or to a given quadrant.
  1317. $END ---------------------------------------------------------------------
  1318. $DEB 009 000 000 000 000The Edit Menu Move/Exchange/Rotate
  1319. This dialog box offers several functions.  To execute one of
  1320. these  functions,  first select the quadrant  and the source
  1321. plane in the FROM box.  Next  select  the  quadrant  and the
  1322. destination  plane from the TO box.  Then select the desired
  1323. function  and click on  EXECUTE.  The 512 and 1024  options
  1324. allow you to work on one of the 4 visible (A, B, C, or D) or
  1325. masked (E, F, G, or H)  quadrants  or on the entire  screen.
  1326. The  functions  CUT  AND  PASTE  PIXELS,  CLEAR  and 
  1327. COPY PIXEL AREA  work on an area that is  selected  after
  1328. you click on EXECUTE.
  1329. The other  functions  work on the entire  quadrant chosen
  1330. or on an area if editors function is chosen.
  1331. The function COPY COLOR MAP copies a color map from
  1332. one  plane  to  another.  For  this  function,   choosing  a
  1333. quadrant is not necessary.  
  1334. The function  EXPAND enlarges an area by a factor  of two.
  1335. This  enlargement  affects  the upper left part of the area
  1336. selected.
  1337. The  function  IMAGE RESIZE  of the  EDIT  menu  can be 
  1338. used if you  desire  more flexibility  when  choosing the
  1339. enlargement  factor and the area to enlarge. 
  1340. The function COMPRESS reduces the image by a factor of two.
  1341. WARNING:  don' t forget to select the FROM plane,
  1342.           otherwise  the  functions do not work.
  1343.  
  1344. $END ---------------------------------------------------------------------
  1345. $DEB 512 000 000 000 000Image Resize
  1346. This  function  modifies  the size of an image by a variable
  1347. factor x and y when using the image' s upper left  corner as
  1348. the origin.  Select the source quadrant and the  destination
  1349. quadrant,  as well as the source  plane and the  destination
  1350. plane,  using the FROM and TO boxes and the button  options.
  1351. Choose the origin  point and the scale  factors  using the X
  1352. and Y orig,  and X and Y factor  boxes,  respectively.  Pick
  1353. the  interpolation  method,  either the nearest pixel or the
  1354. bicubic  spline,  which gives the best  results but  demands
  1355. more  computations.  Click  on RUN.
  1356.  
  1357. $END ---------------------------------------------------------------------
  1358. $DEB 211 000 000 000 000Image annotation
  1359. This function  writes text or draws lines and symbols on the
  1360. image.  These text and  line  annotations  can be  modified,
  1361. masked, or rewritten at any time.  They can also be saved to
  1362. a file (see the  ANNOTATION  SAVE  function  under  the FILE
  1363. submenu).
  1364.  
  1365. The function MERGE ANNOTATIONS AND IMAGE allows you 
  1366. to inlay the  annotations  in the  image.  In the  case  of
  1367. an  image displayed  in false color, all the  pixels  above
  1368. 249 are reduced to 249, and a special  scale is used in the
  1369. interval from 250 to 255 in order  to  define  the  overlay
  1370. graphics colors.
  1371.  
  1372. If this scale is lost, the function  INSERT GRAPHIC SCALE
  1373. in the submenu TEST recreates it without altering the image.
  1374. See the  function  DRAW COLOR  LEGEND  from the EDIT menu 
  1375. and the  functions  CONTOURING  and DRAW GRID  from the
  1376. PLOT menu.
  1377. $END ---------------------------------------------------------------------
  1378. $DEB 408 000 000 000 000
  1379. This function draws grids.
  1380. You can choose the quadrant, the line thickness, the origin and
  1381. the size of the selected area, and the grid step in X and Y.
  1382. The result can then be saved in a file using the 
  1383. SAVE  CONTOUR  function  from the FILES menu.
  1384.  
  1385. $END ---------------------------------------------------------------------
  1386. $DEB 212 000 000 000 000Draw Color  Legend
  1387. This  function  constructs  a color legend.
  1388. The DRAW RAINBOW  function  draws a rectangle containing
  1389. the color map.  To select a color, enter its RGB value or
  1390. click on SELECT  COLOR  FROM  IMAGE.  SELECT  COLOR
  1391. FROM IMAGE allows you to choose a color in the image.  After
  1392. clicking on this button,  place the mouse on the image area
  1393. and press  the right  mouse  button.  While  the  button  is
  1394. pressed,  the color of the pixel is  displayed  at the mouse
  1395. position.  When the desired  color is obtained,  release the
  1396. right button.  DRAW ICON draws a symbol (e.g., box, diamond,
  1397. circle,  triangle) of the selected color.  After clicking on
  1398. this  button,  select the point  where the symbol  should be
  1399. displayed by clicking on the right mouse button.
  1400. CLEAR LAST INSERT  undoes the last  insert.
  1401. CLEAR AREA  erases an area selected  with  the  mouse.
  1402. The  options  KEEP X and KEEP Y force the  horizontal  or
  1403. vertical  alignment of the symbols placed  by DRAW  ICON.  
  1404. NOTE:  Also  see the  function  DRAW IMAGE  ANNOTATION
  1405.             from the EDIT  menu.
  1406. $END ---------------------------------------------------------------------
  1407. $DEB 504 000 000 000 000Pixel masking
  1408.  This  function  creates a mask by  filtering pixels using
  1409.  one or several  parameters and then attaches it to the image.
  1410.  To use this function, you first create a mask and then connect
  1411.  it to the image.
  1412.  
  1413.  To create a mask, select the quadrant and the plane  desired
  1414.  from the CREATE box.  Next select the filter  conditions for
  1415.  the R, G, and B  planes.  For  each  plane  you  specify  an
  1416.  interval of pixel values to which the  filtering  conditions
  1417.  are  applied.  The conditions for the three  planes can be
  1418.  combined  using  AND  and  OR  options.  The  INVERS  option
  1419.  inverses the mask.  Once you' ve made your selections, click
  1420.  on CREATE.  The masked  areas are  displayed  on a screen in
  1421.  magenta.  The mask can be  modified by clicking on ERASER
  1422.  to erase the masked areas.
  1423.  
  1424.  To merge the mask to the image, select the destination  area
  1425.  and plane in the MERGE box, and select the value  that will
  1426.  be given to the masking  pixels.  This value is stated as a
  1427.  constant (value choice);  however, if you are in true color
  1428.  mode,  you may  state  this  value  as a  color.  Once  the
  1429.  selection is made, click on merge.  The mask created can be
  1430.  used by the IMAGE ALGEBRA  function  (under section 3.5)
  1431.  to select  specific  pixels to  modify.
  1432. $END ---------------------------------------------------------------------
  1433. $DEB 505 000 000 000 000Area Filling
  1434.  This function selects a contour or an area using the mouse and
  1435.  then merges it to the image with a desired pixel value.
  1436.  
  1437.  Select  the  target  quadrant  and  plane  (TO box) and then
  1438.  select the type of  background  plane:  IMAGE or VALUE.
  1439.  If you select IMAGE, the TO area will be initialized using 
  1440.  the FROM area,  which must be selected in the FROM box.
  1441.  If you select  VALUE,  the TO area will be  initialized  
  1442.  using the constant  indicated  in the box located to the right
  1443.  of the "Background  :  value"  option  button.
  1444.  Select  one of the three plot types (e.g., rectangular area,
  1445.  closed area, free contour) and then press RUN.
  1446.  You can then select the area.
  1447.  Select  the  fill  value  (in the box to the  right  of the
  1448.  "Merge  with value"  option)  and then RUN.
  1449.  
  1450. $END ---------------------------------------------------------------------
  1451. $DEB 409 000 000 000 000Page Setting
  1452. This function  menu sets up a 1024 mosaic plane of smaller
  1453. images of any size  stored on disk.  The menu is composed
  1454. of  the  4  following  areas:
  1455.  
  1456. File  format definitions
  1457. This top area is used to  define  various  file format
  1458. dimensions (see FREE FORMAT READ under section 3.1).
  1459. For  example,  to read a 16 bit file of size 2884 that has a
  1460. 32 bit header  and  values  between  1000 and 3500,
  1461. you must enter:
  1462. Pixel  length :  2 Nb  lines:  288 Nb  columns:  384
  1463. Header  offset:  4 Scale  to 8:  1%:  1000  99%:  3500
  1464.  
  1465. Grid drawing
  1466. This area is used to define the mosaic grid in which the
  1467. images are placed.  For  example,  2884 images can be
  1468. arranged  in 100 cells that use an origin  point of 100, 100
  1469. (x,  y)  for  the  resulting   image.  The  images  are
  1470. separated by 10 pixels.  For these specifications, enter:
  1471. y orig:  100 x orig:  100  thickness:  10  
  1472. height:  100 width: 150 (Show grid)
  1473.  
  1474. Selection
  1475. This area is used to define the link  between  the image
  1476. size on disk and the  mosaic  grid size.  You may  select
  1477. either a part of the image or a line and column  sampling
  1478. of the  image.  For  example,  you can display  the center
  1479. of 2884  images by  entering:  
  1480. line: 44 line step:  2 column:  42 column step:
  1481. You may expand or reduce the selecting image to the size
  1482. of the  mosaic grid.
  1483.  
  1484. Read the file
  1485. This area  decodes a file and  places  the  result in a grid
  1486. cell by using the mouse.  For  example,  enter Read and
  1487. then select the  placement  with the right  mouse  button.
  1488. After placing the first image, you can select  another file in
  1489. the Directory Contents and then repeat the Read command.
  1490. $END ---------------------------------------------------------------------
  1491. $DEB 013 000 000 000 000Image Algebra
  1492. This function computes  equations written in symbolic notation.
  1493. The  operators  are standard mathematical functions.
  1494. (The calculation is done in real 32 bits).
  1495. The possible  operands are:
  1496. - images:  A, B, C, D denote the  visible 512 x 512  quadrants.
  1497.        E, F, G, H denote the  masked  512 x 512  quadrants.
  1498.        V  denotes  the  visible planes  1024 x 1024.
  1499.        M denotes  the  masked  planes  1024 x 1024.
  1500.        R, G, B  denote  the  color  planes.
  1501.        T  denotes  the ensemble of the 3 planes.
  1502. - the variables X and Y designate the  row  number  and
  1503.    column  number  of the  image.
  1504. - the notation  [c,r]  allows  you to shift the rows and 
  1505.    columns.
  1506.  
  1507. Example:  AB = abs (AG - AR[1,0])  (AR is shifted by one
  1508. to the left (-1 would be to the right)
  1509.  
  1510. Example:  VR = sin (X) x 128 + 128 (X ranges from 0 to 1023)
  1511.  
  1512. WARNING: 
  1513. if the  results  are not within the values of 0 to 255,
  1514. then the image will not be  correctly  displayed.
  1515.  
  1516. SAVE  EQUATION adds the current  equation to the Sphinx
  1517. equation  database named  ($home).SP_ALGEBRA. 
  1518.  
  1519. FILE  RESULT:  creates  a binary 32-bit file named
  1520. SP_ALGEBn that contains the image in real values with 
  1521. FORTRAN  headers.
  1522.  
  1523. FILTER  MASK:  executes  the operation  on the  pixels 
  1524. that are not  masked  (see  Pixel Masking  for 
  1525. creating a mask).
  1526.  
  1527. $END ---------------------------------------------------------------------
  1528. $DEB 503 000 000 000 000Area standard deviation
  1529. This  function  plots  the  contour  of  an  area  and  then
  1530. calculates  the area, the minimum  and maximum  values,  the
  1531. average  value,  and the  standard  deviation.  To select an
  1532. area,  click on RUN.  PLOT  allows  you to plot a  histogram
  1533. (see the Graphics editor).  This function works on the three
  1534. RGB planes.
  1535. It also takes into account the values that have been 
  1536. entered  into the  PHYSICAL  VALUES  menu in the PIXEL
  1537. VALUES function to determine pixel values in physical units.
  1538.  
  1539. $END ---------------------------------------------------------------------
  1540. $DEB 014 000 000 000 000Convolution Product
  1541.   This  function  calculates  an image R whose  pixel  values
  1542.   are the  product  of pixel  values in a coefficient matrix C
  1543.   by the pixel values in the original image matrux I.
  1544.   The coefficient matrix C can be created using the keyboard
  1545.   (option owner), read from a file, or selected from Sphinx' s
  1546.   predefined   operators:  smoothing,   Sobel  operator,  edge
  1547.   detection (vertical, horizontal, or diagonal).
  1548.  
  1549.   You can specify the matrix size, the threshold above which
  1550.   results  are no longer  kept,  and the  desired  plane and
  1551.   quadrant.  To start the computation, click on CONVOLUTION.
  1552.  
  1553.   WARNING:  don'  t  forget  to  specify  the  FROM   plane,
  1554.   otherwise  the  function  will not  work.
  1555.  
  1556.   This  menu also allows you to filter an image using a vector
  1557.   of V elements contained either in a file or entered  by hand:
  1558.   I(i,j) x V(i module n) or I(i,j) x V(j module n)
  1559.  
  1560.  To use the filter, select the file  containing the V vector,
  1561.  and then click on FROM FILE.  For a vector line, enter 1 in
  1562.  the box "Nb  columns"; and for a vector  column, enter 1 in
  1563.  the box "Nb  lines".  Then  click on the button  FILTERING.
  1564.  Using, for  instance, a vector line [1.00,0.00] will create
  1565.  a filtered  image  that only  contains  every  other  line.
  1566.  Similarly,  a vector  column will  create a filtered  image
  1567.  that only contains  every other column.
  1568. $END ---------------------------------------------------------------------
  1569. $DEB 510 000 000 000 000Fourier  Transform
  1570.  The bidimensional  Fourier transform of an image represents
  1571.  the  spectral  components  of an  image.  If  an  image'  s
  1572.  spectral frequency varies rapidly, the transform image will
  1573.  have a large brightness amplitude.
  1574.  
  1575. An  artificial   image  is  constructed   using   calculated
  1576.  frequencies.  The center pixel of a transform image will be
  1577.  the average  amplitude.  From this pixel, the value of each
  1578.  pixel  is  calculated   as  the   logarithm  of  (1  +  the
  1579.  amplitude).  Its distance  (p,q) with respect to the center
  1580.  provides  the  corresponding   frequency  (p/n,  q/n).  The
  1581.  dialog box for the Fourier  transform  function  is divided
  1582.  into the following three areas.
  1583.  
  1584.   The top  part of the  dialog  box  calculates  a  transform.
  1585.   Select the quadrant  that will receive the result  (RESULT
  1586.   TO).  Next,  select the area size of the  source  (areas X
  1587.   and Y).  Click on RUN and  designate the source image area
  1588.   by clicking  the right  button.  The  calculation  is then
  1589.   executed  and the  result  is  displayed  in the  selected
  1590.   quadrant.
  1591.   VALUE  displays  the frequency  values. After clicking on
  1592.   VALUE,  select the points in the  destination quadrant and
  1593.   click the right button.
  1594.   STRETCH expands the amplitude scale, improving the 
  1595.   contrast.  INV  recalculates the inverse  transform  
  1596.   without  filtering.  UNDO restores the  original  image
  1597.   residing in the three planes.
  1598.   SAVE allows  you to  save  the  results  into a  database.
  1599.  
  1600.   The center part of the dialog  box calculates  an inverse
  1601.   transform after a frequency or amplitude filtering.  For a
  1602.   frequency  filtering,  select the "zone"  option, and then
  1603.   click on SELECT  and define the  filter  areas.  The right
  1604.   button  mouse  draws  line  segments  and the left  button
  1605.   closes   the   contour.  Click  next  on  APPLY.  (If  the
  1606.   "complement"  box is not activated, the saved  frequencies
  1607.   are the masked  frequencies.  The others are  assigned  to
  1608.   0).
  1609.  
  1610. The option  "zone & graph"  applies a linear or  exponential
  1611.  function  starting  from the center of the masked  area and
  1612.  diminishing toward the boarders in order to avoid a radical
  1613.  reset to 0.  After clicking on the APPLY function, if "zone
  1614.  &  graph"  is  selected,  the user  must  define  a  radial
  1615.  crossing the masked area.  A  perpendicular  to this radial
  1616.  will  separate  the  area  into two  parts.  The  dampening
  1617.  coefficients will be maximum over the crest and will lessen
  1618.  toward the boarders  parallel to the drawn  radial.  A plot
  1619.  of dampening  lines is produced  along with a box allowing
  1620.  you to apply either the linear function or the  exponential
  1621.  function   (in  this  case,  you  can   modify   the  alpha
  1622.  coefficient,  and by  clicking  on "apply" the new graph is
  1623.  plotted).
  1624.  Three  options  are  possible:
  1625.  EXIT:  stops the filtering.
  1626.  APPLY:  performs   the   filtering   with   the dampening
  1627.  coefficients selected to suppress the desired frequencies.  
  1628.  TEST:  creates  an  artificial  image  in the 0-255  range
  1629.  to  which  the  dampening   coefficients  are applied.
  1630.  
  1631. To  calculate  an  inverse   transform  after  an  amplitude
  1632. filtering,  select the amplitude  filtering  (i.e.,  "color"
  1633. option)  and click on Select and define the level to filter.
  1634. The right mouse button allows you to color the levels on the
  1635. color  bar which  appears  to the right of the  image.  Next
  1636. click on APPLY.
  1637.  
  1638. The  lower  part of the  Fourier  transform dialog  box  
  1639. performs  the  following   operations   on  the transforms
  1640. saved in the data base.
  1641. - The "Show" option displays an image file.
  1642. - The "Inver"  option  displays the inverse  transform 
  1643.                of an image  file.
  1644. - The "Save"  option writes the results to a file.
  1645.                To perform an operation,  the user must:
  1646. - select the A button and  choose the  transform
  1647.                from the selection
  1648. - select the B button and choose  another transform
  1649.                from the selection
  1650. - select one of the  following operations:
  1651.         - add:  transform   addition  
  1652.         - sub: transform  subtraction 
  1653.         - conv:  transform   convolution
  1654.         - unconv:  transform   deconvolution
  1655.         - correl:   transform correlation  
  1656. - click the "Run"  button.
  1657. $END ---------------------------------------------------------------------
  1658. $DEB 508 000 000 000 000Structure function
  1659. This function calculates the structure function FS(d) in the
  1660. order of either lines (n) or columns (m) for any rectangular
  1661. area, and then graphs the values as a function of distance d.
  1662. The user specifies the minimum and maximum boundaries.
  1663. The value of FS for the minimum  d  values  is  displayed.
  1664. In the  case  where  the boundaries  are  different,
  1665. the function  graphs a function FS(d).
  1666. $END ---------------------------------------------------------------------
  1667. $DEB 507 000 000 000 000Cluster Analysis
  1668. This function  employs a threshold technique to define and
  1669. analyze the cellular structure of an image.
  1670.  
  1671. To use this function, choose the input and output planes and
  1672. quadrants,  determine the threshold  (box) value below which
  1673. pixels are  considered  background  (this can easily be done
  1674. using the Fill levels with color), and select the  weighting
  1675. to be used:  1 or P V.  With the 1 weighting, all the pixels
  1676. will  have  the  same  weight  and the  barycenter  will  be
  1677. geometric;  with the PV weighting,  the pixels whose digital
  1678. values  are  high  will  have  a  heavier   weight  and  the
  1679. barycenter  will by physical.  
  1680. After clicking on RUN, Sphinx queries  the user to  select
  1681. the  analysis  area  and  then displays  the  results:
  1682. a)  on the image  plane:  
  1683.     - an artificial   image  showing  the  cells;  
  1684.     - the  number  of background  pixels for the points 
  1685.     below the threshold; 
  1686.     - the number of cells and its surface area.
  1687.  
  1688. b)  on the graphic plane:  
  1689.     -  the   gravity   centers   of  all  the   cells
  1690.        superimposed  on the original  image.
  1691.  
  1692. If the "Result File" option is selected, the file clsize.rs
  1693. is created  with:  
  1694. - the  coordinates  of the  processed  area; 
  1695. - the surface and perimeter for each cell; 
  1696. - the average value of the cellular digital  pixel values; 
  1697. - the position of the gravity center (line and column numbers);  
  1698. - an  estimate of the fractal dimension and the size 
  1699.   distribution  of the  cells.  
  1700.   
  1701. PLOT displays a series of plots:  
  1702. - the surface area of the cells as a function of their  
  1703.   perimeter in number of pixels; (in a log-log graph, a linear
  1704.   fit obtains the fractal dimension of the  distribution);  
  1705. - distribution of the cell area covered by a specific class,
  1706.   normalized by the size of the class and the surface area
  1707.   of the studied region, as a function of the average value
  1708.   of the diameter associated with the class (the units 
  1709.   obtained are in pixels -1) ; 
  1710. - the size  distribution of cells as a function of diameter
  1711.   classes.  It is obtained by counting  the number of cells
  1712.   by diameter  class and then dividing by the class size and
  1713.   by the total  surface area of the   region   
  1714.   (the  units  are  in  pixel -3)
  1715. $END ---------------------------------------------------------------------
  1716. $DEB 509 000 000 000 000Principal Components Analysis
  1717. This function analyzes an image composed of  three  spectral
  1718. ranges  in the  RGB  planes.  A  vector transformation  
  1719. constructs an artificial  image in which the new  spectral
  1720. components   are  fully   decorrelated.
  1721.  
  1722. The displayed results are:  
  1723. - the correlation matrix constructed using the  covariance
  1724.   matrix.  It expresses  the percent of correlation   between
  1725.   the   different   channels.  
  1726. - the eigenvalues  and the  eigenvectors of the covariance  
  1727.   matrix (for  instance,  a strong drop in the  eigenvalue
  1728.   size will increase in strong correlation  with the  base
  1729.   spectral components,  with the final result being more
  1730.   statistically significant).
  1731.   *The  first  eigenvector  will produce  the strongest 
  1732.   component and is placed in the blue plane.
  1733.   *The second vector will produce a weaker  component
  1734.   and is placed in the green plane.
  1735.   *The third  corresponds to the residual noise of weak
  1736.   amplitude and is placed in the red plane.  
  1737. - a linear  Taylor series expansion  of the final  numerical
  1738.   values into a 0-255 range and the different coefficients 
  1739.   are displayed.
  1740.  
  1741. These results can be saved to a SPHINX_PCAn file and 
  1742. applied to the images, where (n) is augmented  with 
  1743. each usage.
  1744. $END ---------------------------------------------------------------------
  1745. $DEB 511 000 000 000 000 Pixels  Classification
  1746. This classification method by cluster  dynamics  regroups
  1747. pixels into classes of the same spectral  components.
  1748.  
  1749. In 1024 mode (the  entire  image) the classification  is
  1750. completed using the three RGB planes.  In 512  mode,  the
  1751. classification   is  applied  to  selected quadrants in the
  1752. RGB planes in which various  wavelengths of the same image
  1753. have  already  been  placed.
  1754. To execute  the function, select the mode (1024 or 512),
  1755. the  classification area(s),  where  you want to  display
  1756. the  results  and the number of desired classes.
  1757.  
  1758. Next choose the class definition method:  
  1759. - automatic,  using a  histogram  of  values  
  1760. - by pixel, choosing the class values by clicking on a pixel
  1761.   with the left mouse button (the right button  displays the
  1762.   color sampled)  
  1763. - by  area,  choosing  the  classes  by using  the maximum
  1764.   histogram  value of an area  defined  in the  image using
  1765.   the right mouse  button 
  1766. - manually,  defining  the RGB levels  desired.
  1767.  
  1768. You can  display the  results in true color mode or in the
  1769. blue plane.
  1770.  
  1771. RUN  executes  the  calculation.
  1772. UNDO  restores  the initial  image.
  1773. P.VALUES  displays  the pixel values.
  1774.   It is identical to the PIXEL VALUES function in the main
  1775.   menu and is  placed  in the  CLASSIFICATION  in order to
  1776.   display  pixel values  without hav ing to revert to the main
  1777.   menu.  When the  calculation  is finished, a 24 bit composite
  1778.   image is displayed.
  1779. CHANGE COLORS  allows you to modify the colors of the
  1780.   classes.  After  clicking  on this  button,  Sphinx  displays
  1781.   a color table, and then for each class it displays the number
  1782.   (in the upper  left of the  screen)  and color (to the right
  1783.   of the  color  table).  You can then  select a new  color  
  1784.   any where in the image with the right  button  and  change
  1785.   the class with the left button).
  1786.   WARNING:  when you enter into this  sequence, you should
  1787.   redefine the colors for all the classes.  
  1788.   To exit  quickly from the  process,  simply click the left
  1789.   button on the color showing the different classes.
  1790. $END ---------------------------------------------------------------------
  1791. $DEB 016 000 000 000 000External Processes
  1792. This function allows Sphinx to execute independent programs.
  1793. These  programs  employ a library  delivered  with Sphinx to
  1794. accept images transferred by Sphinx and to retransfer images
  1795. to Sphinx that have been processed  externally.  The chapter
  1796. "Development  of External  Programs"  contains the necessary
  1797. information for writing and integrating external programs.
  1798.  
  1799. To execute a program, select the program, the image(s) to be
  1800. employed by the program, and the plane(s) and quadrant(s) to
  1801. display the image(s) computed by the external program.  Then
  1802. click on  EXECUTE.  For  programs  that  require  additional
  1803. parameters,  a dialog box  can be  used  to  transfer  the
  1804. parameters  to the  program.
  1805.  
  1806. The  program  is  executed  in parallel.  You can  continue
  1807. to use Sphinx while the program is being executed. The 
  1808. results are  displayed by Sphinx as soon as the program is 
  1809. finished  executing.
  1810.  
  1811. The PENDING JOB STATUS button displays the program status
  1812. (Waiting, Running, Ended).
  1813.  
  1814. WARNING:  To communicate with the external  programs, Sphinx
  1815. uses (tmp)/sphinx_data* and (tmp)/sphinx_sema* files.  These
  1816. files are  normally  deleted when  quitting  Sphinx.  If the
  1817. Sphinx application quits  unexpectedly,  some of these files
  1818. may not be deleted.
  1819.  
  1820. $END ---------------------------------------------------------------------
  1821. $DEB 514 000 000 000 000Mosaic Animation
  1822. This function  animates  images of size 128 x 128, 
  1823. 256 x 256 or 512 x 512.
  1824.  
  1825. To use this function, you  need  to  arrange  within  a 
  1826. 1024 x  1024  image  an ensemble of sixty four 128 x 128
  1827. sub-images,  sixteen 256 x 256 sub-images, or four 
  1828. 512 x 512 sub-images.
  1829.  
  1830. After  loading  images  into one of the  three  RGB  planes,
  1831. select the plane  containing  the images and click on RUN or
  1832. RUN FAST (for HP stations  with the Turbo SRX card).  Sphinx
  1833. moves  successively  through  the  sub-images  to produce an
  1834. animated movie effect.
  1835.  
  1836. DIRECTORY CONTENTS directly loads images and color tables.
  1837. $END ---------------------------------------------------------------------
  1838. $DEB 403 000 000 000 000Histogram 
  1839. This function  calculates a histogram  of an image  area.
  1840. The menu allows you to choose in which plane to perform 
  1841. the  computation  (boxes R, G, and B).
  1842.  
  1843. To  select  the  processing  area(s),  fill in the  boxes "x
  1844. start",  "x end",  "y  start"  and "y end" or, more  simply,
  1845. select the  area(s)  using the mouse.  The mouse  directions
  1846. are  displayed  in a small  window in the lower right of the
  1847. screen.
  1848.  
  1849. The  histogram  function  takes  into  account  the values
  1850. that have been entered into the PHYSICAL  VALUES menu
  1851. in the PIXEL VALUES function to determine  pixel values.
  1852.  
  1853. To display the histogram  graphics, click on PLOT (see
  1854. Graphics editor) 
  1855. CLEAR BITMAP erases the area graphics on the screen.
  1856. CLEAR LAST undoes the last histogram.
  1857. $END ---------------------------------------------------------------------
  1858. $DEB 404 000 000 000 000 Cumulative histogram 
  1859. This function calculates  cumulative  histograms.
  1860. The menu allows you to choose in which plane to perform 
  1861. the  computation  (boxes R, G, and B).
  1862.  
  1863. To  select  the  processing  area(s),  fill in the  boxes "x
  1864. start",  "x end",  "y  start"  and "y end" or, more  simply,
  1865. select the  area(s)  using the mouse.  The mouse  directions
  1866. are  displayed  in a small  window in the lower right of the
  1867. screen.
  1868.  
  1869. The  histogram  function  takes  into  account  the values
  1870. that have been entered into the PHYSICAL  VALUES menu
  1871. in the PIXEL VALUES function to determine  pixel values.
  1872.  
  1873. To display the histogram  graphics, click on PLOT (see
  1874. Graphics editor) 
  1875. CLEAR BITMAP erases the area graphics on the screen.
  1876. CLEAR LAST undoes the last histogram.
  1877. $END ---------------------------------------------------------------------
  1878. $DEB 405 000 000 000 000 Radial (x)
  1879.  
  1880. This  function calculates  radial  functions  of x.
  1881. The menu allows you to choose in which plane to perform 
  1882. the  computation  (boxes R, G, and B).
  1883.  
  1884. To  select  the  processing  segment(s),  fill in the  boxes "x
  1885. start",  "x end",  "y  start"  and "y end" or, more  simply,
  1886. select the  segment(s)  using the mouse.  The mouse  directions
  1887. are  displayed  in a small  window in the lower right of the
  1888. screen.
  1889.  
  1890. The  radial  function  takes  into  account  the values
  1891. that have been entered into the PHYSICAL  VALUES menu
  1892. in the PIXEL VALUES function to determine  pixel values.
  1893.  
  1894. To display the radial  graphics, click on PLOT (see
  1895. Graphics editor) 
  1896. CLEAR BITMAP erases the segment graphics on the screen.
  1897. CLEAR LAST undoes the last radial.
  1898. $END ---------------------------------------------------------------------
  1899. $DEB 405 000 000 000 000 Radial (d)
  1900.  Radial f(d)
  1901.  This function  calculates radial  functions  as a function
  1902.  of the  distance  to the origin of a segment.
  1903. The menu allows you to choose in which plane to perform 
  1904. the  computation  (boxes R, G, and B).
  1905.  
  1906. To  select  the  processing  segment(s),  fill in the  boxes "x
  1907. start",  "x end",  "y  start"  and "y end" or, more  simply,
  1908. select the  segment(s)  using the mouse.  The mouse  directions
  1909. are  displayed  in a small  window in the lower right of the
  1910. screen.
  1911.  
  1912. The  radial  function  takes  into  account  the values
  1913. that have been entered into the PHYSICAL  VALUES menu
  1914. in the PIXEL VALUES function to determine  pixel values.
  1915.  
  1916. To display the radial  graphics, click on PLOT (see
  1917. Graphics editor) 
  1918. CLEAR BITMAP erases the segment graphics on the screen.
  1919. CLEAR LAST undoes the last radial.
  1920. $END ---------------------------------------------------------------------
  1921. $DEB 415 000 000 000 000 Free Radial
  1922.  The FREE RADIAL  function calculates  a  function  for  a
  1923.  hand-drawn   curve  as  a function of  distance to the
  1924.  origin of the curve.
  1925.  
  1926. The menu allows you to choose in which plane to perform 
  1927. the  computation  (boxes R, G, and B).
  1928.  
  1929. The right mouse  button  allows you to draw the curve.
  1930.  
  1931. The  free radial  function  takes  into  account  the values
  1932. that have been entered into the PHYSICAL  VALUES menu
  1933. in the PIXEL VALUES function to determine  pixel values.
  1934.  
  1935. To display the radial  graphics, click on PLOT (see
  1936. Graphics editor) 
  1937. CLEAR BITMAP erases the segment graphics on the screen.
  1938. $END ---------------------------------------------------------------------
  1939. $DEB 999 000 000 000 000Menu Graphics  Editor 
  1940.  The graphics  editor is called from  various  Sphinx  
  1941.  functions  by clicking  on PLOT.
  1942.  You can intervene on a graphic  presentation  to:
  1943.  - change the window  size (MOVE AND RESIZE) 
  1944.  - select the line style (e.g.,  straight line,  arrowhead,
  1945.    etc.), the symbol type  represented  by  points, one of 5
  1946.    colors,  and line thickness 
  1947.  - define the axes, such as linear or logarithmic, minimum
  1948.    and maximum,  and the  gradation  marks 
  1949.  - write the title and label  axes 
  1950.  - define a line step in the case of a scatter  plot 
  1951.  - zoom part of the graph by selecting an area with the mouse
  1952.    in  the  graph  window.
  1953.  
  1954. After  making modifications,  display the results by clicking
  1955. REDRAW.  At any time you can return to the  default  values
  1956. by clicking on DEFAULTS.
  1957.  
  1958. You can enhance a graphic  overlay by using a combination of
  1959.  lines, boxes,  symbols (30 maximum), and text (30 maximum).
  1960.  For each graphic  addition,  you can redefine the color and
  1961.  graphic  type.  To  insert a graphic  element,  you need to
  1962.  click on DRAW and then  position  the  cursor  on the image
  1963.  position  desired.  If  you  make  an  error  or  incorrect
  1964.  placing,  you can delete the  graphic by  clicking on CLEAR
  1965.  and then  replacing the cursor over the  incorrect  graphic
  1966.  text, line, box, or symbol.
  1967.  
  1968.  PRINT executes the printing of a graphic  image.
  1969.  MERGE WITH IMAGE merges the graphic with the image.(*) 
  1970.  MOVE AND RESIZE moves a graphic  window and allows you
  1971.  to modify its size  anywhere  on the image using the mouse.
  1972.  SAVE  writes the graphics to a file, and the graphic  can
  1973.  be  inserted  later by using the REDRAW  SAVED GRAPH  
  1974.  function.  
  1975.  OVERLAP  displays all the graphics one by one. 
  1976.  NEXT PLOT  allows you to  advance to the next  graph.
  1977.  FITS  accesses  a  window  that  performs  a  smoothing  or
  1978.  polynomial   approximation   for  a  displayed  graph.  The
  1979.  derived  function can be either added to the original graph
  1980.  or used to  replace  it.
  1981.  
  1982.  To zoom one part of a graph,  you must first  define the
  1983.  upper-left  corner of the zoom area with  the  right  button
  1984.  and  then  move the  mouse to the desired  lower-right corner
  1985.  before letting go of the button directly on the graph window.
  1986.  
  1987.   (* ) If Sphinx is in true color  mode,  then the three RGB
  1988. planes are  affected  by the  displayed  graphics.  In plane
  1989. mode (R, G or B), all the pixel values  greater than 249 are
  1990. scaled down to 249, and then a special  scale is used within
  1991. the 250 to 255 range in order to define the annotation  and
  1992. graphics  colors.  If this scale is lost, the INSERT GRAPHIC
  1993. SCALE  function  in the TESTS menu can  recreate  it without
  1994. modifying the image.
  1995. $END ---------------------------------------------------------------------
  1996. $DEB 400 000 000 000 000Redraw saved graph
  1997.   REDRAW  SAVED GRAPH  allows  you to redraw,  modify,
  1998.   or overlay  graphs  saved  using the SAVE function in the
  1999.   graphics  editor.
  2000.   After selecting a title in the "Graphic  Saved Titles"
  2001.   window, the  corresponding graphic is superimposed  over
  2002.   the previous  graphics.  The graphic  determines  the frame
  2003.   size, with the  minimum and maximum  adjusting  to each 
  2004.   new choice.
  2005.  
  2006.   At any time  the user can: 
  2007.   - call up the graphics editor in order to modify the graphics
  2008.     presentation (REDRAW WITH CHANGE). In this case the
  2009.     graphics are  displayed  one by one in the order they were
  2010.     selected.
  2011.   - print the results  (PRINT).
  2012.   - erase the graphics  window (CLEAR  GRAPH).
  2013.   - create an ASCII file containing the values of the graphics
  2014.     (EXTRACT  DATA).  The file created is named  SPHGRAXYn.
  2015. $END ---------------------------------------------------------------------
  2016. $DEB 401 000 000 000 000Clear saved graph
  2017.  
  2018.   This  function  deletes an already saved graph from a file
  2019.   by simply clicking on the graphics file title in the menu.
  2020.  
  2021. $END ---------------------------------------------------------------------
  2022. $DEB 407 000 000 000 000Countouring
  2023.   The CONTOURING  function  plots  isocontours of
  2024.   various values and in the five colors and then merges them
  2025.   into the image  plane.  You must select the  quadrant  for
  2026.   plotting and the contour  values; an eraser tool  (ERASER)
  2027.   allows  you  to  erase  any  errors  or  aberrations.
  2028.   
  2029.   The resulting  graphics  can be  saved in a file by using
  2030.   the SAVE  CONTOUR  function  in the FILES menu.
  2031. $END ---------------------------------------------------------------------
  2032. $DEB 410 000 000 000 000Bidimentional Plot
  2033.   The   BIDIMENTIONAL    PLOT   function    generates
  2034.   bidimentional  histograms.  You  must  select  the x and y
  2035.   plane  to  display  as well as the  area to  process.  Two
  2036.   plotting options are available: 
  2037.   - a 2D graphic  presented as  a  scatter  plot 
  2038.   -  a  3D  graphic   displaying   the frequencies on the
  2039.   Z axis 3D Color Graphic 
  2040. $END ---------------------------------------------------------------------
  2041. $DEB 411 000 000 000 0003D Graphics
  2042.   This  functions uses the image  plane to  display a  
  2043.   user-defined  area by placing  on three RGB axes the
  2044.   values of pixels in color.
  2045.  
  2046.   The user can modify the view angle by 30 degree intervals.
  2047.   You can also  project  the  points in white or with  their
  2048.   original   image  color.  
  2049. $END ---------------------------------------------------------------------
  2050. $DEB 412 000 000 000 000 Change  Saved  Graph  Name  
  2051.  This function changes the file name of the saved graphics 
  2052.  file, which is  implicitly  named  SPHINX_GRAPHX  in the 
  2053.  default start-up  directory.  By clicking on the  "Record"
  2054.  button the  function  verifies  the file' s status  and 
  2055.  warns the user if it  already  exists.
  2056.   
  2057. $END ---------------------------------------------------------------------
  2058. $DEB 413 000 000 000 000 Import  Graph  From File
  2059.   This function  allows you to plot graphics using  existing
  2060.   data in an ASCII file.  
  2061.   Two  options are  offered:
  2062.   "Lines ":  for line graphs 
  2063.   "Scatter":  for scatter plots
  2064.  
  2065. The "Lines  skipped" box allows you to skip a defined number
  2066.  of lines at the beginning of a file (implicitly zero).
  2067.  "Nb Columns" defines the number of graphics  (implicitly 1,
  2068.  and x being  the data  number).  The  data are  expected  to be
  2069.  arranged  in the  format:  x y1 y2 ...  yn.  
  2070.  "Nb  Lines" is either calculated by the program or given by 
  2071.  the user.
  2072. $END ---------------------------------------------------------------------
  2073. $DEB 600 000 000 000 000Print color image
  2074. This function sends an image file to print by a PaintJet
  2075. or  PostScript  printer.  The file is either written to
  2076. the disk file SPHINX_PJETn (n is  incremented  with  each 
  2077. usage)  or sent  to the  print spooler. 
  2078.  
  2079. The user  selects:
  2080. - the image  quadrant  or the area to print
  2081. - the printing (or  suppression) of the color bar
  2082. - the  number of  copies
  2083. - the  output:  PostScript  or PaintJet
  2084.  
  2085. $END ---------------------------------------------------------------------
  2086. $DEB 606 607 000 000 000Print a Grey Level Image
  2087. This function prints an 8 bit image in 16  shades of gray
  2088. on a laser  printer.
  2089. It calculates a standard scale, stretched between 0 and 255
  2090. in increments of 16.  In the first menu the user can reduce
  2091. or expand  the  scale in  order to  adjust  the  contrast
  2092. for printing.  Several  options  are  available:
  2093.  - high  value scaling
  2094.  - lower value scaling
  2095.  - histogram stretch by area
  2096.  - permanently saving the gray scale
  2097.  
  2098. High (low) values scaling is done by placing the cursor on
  2099. the new maximum  (minimum).  Then by  clicking  on the right
  2100. button  and moving  the mouse,  the new  scale is  displayed.
  2101. Keeping  the  button pressed,  you can stretch the scale.
  2102. All the pixel  values outside  the  limit  appear  as  either
  2103. black  or  white.
  2104.  
  2105. Histogram stretch  automatically  calculates the scale in a
  2106. rectangular  area  defined  by the user.
  2107.  
  2108. When the scale is adjusted  correctly,  PRINT  brings up
  2109. the print menu.  The result is always written to the file
  2110. SPHINX_GJETn  (where n is incremented with each  execution).
  2111. The user selects:  
  2112. - the quadrant or the area using the mouse 
  2113. - the printing (or suppression) of the gray scale bar 
  2114. - the number of copies 
  2115. - the  output:  PostScript  or  PaintJet
  2116. $END ---------------------------------------------------------------------
  2117. $DEB 603 000 000 000 000Scale 24 bits to 8
  2118. This function transforms a 24 bit image into an 8 bit image.
  2119. The   algorithm   regroups   pixel   classes  into  a  three
  2120. dimensional space.  The RGB components of the classes become
  2121. the color  table and the  number of the class  replaces  the
  2122. original   pixel   values.  The  result  is  arranged  and
  2123. displayed  in the  blue  plane.
  2124.  
  2125. $END ---------------------------------------------------------------------
  2126. $DEB 608 000 000 000 000Scale 24 bits to 8  (3/3/2)
  2127. This function  transforms an 8 bit image into a 24 bit image
  2128. using a 3/3/2 coding algorithm.  For the R and G components,
  2129. it keeps 3 bits, and for the B  component  it only  keeps 2.
  2130.  
  2131. $END ---------------------------------------------------------------------
  2132. $DEB 609 000 000 000 000Scale 8 Bits to 24
  2133. This  function  generates  a 24 bit  RGB
  2134. image using an 8 bit image and its  COLORMAP.  The  original
  2135. image  pixels are replaced by their  corresponding  color in
  2136. the  COLORMAP.
  2137.  
  2138. $END ---------------------------------------------------------------------
  2139. $DEB 008 000 000 000 000Pixel Values
  2140. A pixel' s position and value is  displayed by placing the
  2141. cursor over the pixel and clicking the right mouse button.
  2142. The values of the current plane are automatically displayed.
  2143. The  "All  channels" option   provides   the  values  of the
  2144. 3  planes.
  2145.  
  2146. RECORD memorizes   the   positions   and  values  of  pixel  
  2147. values designated in the file SPHINX_VALn, (where n is 
  2148. incremented at each  execution).  
  2149. PHYSICAL  VALUES  opens a dialog  that allows you to select
  2150. the coefficients of a binomial equation ax + b that is  
  2151. applied to the pixel  values.  These  values are  taken  into
  2152. account  by the  graphing  functions.  
  2153. NEW COORDINATES  opens a dialog  that  allows you to change
  2154. the coordinates  x  and  y  (implicitly  between  0  and  1023).
  2155. MAGNIFY  enlarges a small area around the cursor by a factor
  2156. of 4 at each  selection in order to more  accurately  select
  2157. the  pixels.
  2158. $END ---------------------------------------------------------------------
  2159. $DEB 010 000 000 000 000Zoom
  2160. The ZOOM  function  enlarges  the image center  around the
  2161. cursor  position.  The zoomed image is placed in the A or B
  2162. quadrant  and can  itself be zoomed again.
  2163.  
  2164. The  effects  of ZOOM are lost as soon as you  leave the  
  2165. function.  If you want to  retain a zoomed  image,  you must
  2166. use the IMAGE  RESIZE  function in the EDIT menu or the
  2167. EXPAND  function in the MOVE  EXCHANGE  ROTATE menu.
  2168. If you want to save an image created with the ZOOM  function,
  2169. then before leaving the function you must call up the main
  2170. Sphinx menu  (clicking  with the left  button  in the Sphinx
  2171. MENU area) and copy the  zoomed  image  using  the MOVE  
  2172. EXCHANGE ROTATE  function.
  2173.  
  2174. MAGNIFY zooms a small image area outlined by the cursor.
  2175. The glass  window is activated  by using the right  mouse  
  2176. button.  The left  button  increases  the zoom factor.
  2177. ROAM multiplies a 1024 image by a factor of 2 or 4.
  2178. The screen  size  displays  the  geometry  of origin and the
  2179. cursor  position on the screen  determines  the zoomed  area
  2180. displayed.
  2181. RESET returns to the original  zoom factor.
  2182. $END ---------------------------------------------------------------------
  2183. $DEB 214 414 000 000 000Refresh
  2184. This function refreshes the screen and redisplays the image.
  2185.  All the graphic elements (text, lines,  contours,  symbols,
  2186.  etc.)  that have been superimposed on the image are erased,
  2187.  except  for  those  that have  been  merged  with the image
  2188.  (e.g., MERGE WITH IMAGE function).
  2189.  
  2190. $END ---------------------------------------------------------------------
  2191. $DEB 011 000 000 000 000Iconify Sphinx
  2192.  
  2193.  ICONIFY  Sphinx  redisplays  the  screen  as it was  before
  2194.  launching the Sphinx  program.  To return to Sphinx,  click
  2195.  on the  Sphinx  icon.
  2196.  
  2197. $END ---------------------------------------------------------------------
  2198. $DEB 900 000 000 000 000Satellite Signal Simulation
  2199. This function  calculates the satellite  signal  sensitivity
  2200. from 0.25 to 4.0  microns  in a  cloud-free  atmosphere.  It
  2201. takes into account the principal atmospheric effects, namely
  2202. molecular and aerosol  diffusion and gas absorption by water
  2203. vapor, carbon dioxide, oxygen, and ozone.
  2204. The effects of a heterogeneous  surface can be  approximated.
  2205.  
  2206. The  following data are required:
  2207. - the geometric viewing  conditions
  2208. - an atmospheric  model and its gas  components
  2209. - aerosol  model with  types  and  concentrations
  2210. - spectral  conditions
  2211. - surface reflectance  properties, including type and spectral
  2212. variation   
  2213.  
  2214. It  is   possible   to  take into account a heterogeneous
  2215. surface characterized by a circular target for which you can
  2216. specify the radiation,  the reflectance, and the reflectance
  2217. of the  surrounding  environment.
  2218. At each step you can either  define your own  conditions or
  2219. choose a model  from  the  listing  of  standard  models
  2220. (taking  as spectral  conditions,  for instance, the spectral
  2221. bands of a given satellite).
  2222.  
  2223. Limitations: 
  2224. - Viewing geometry:  the solar and  satellite  zenith 
  2225.   angles must be less than 60 and 50   degrees,   respectively.
  2226. - Atmospheric   model:  no limitations. 
  2227. - Aerosol  model:  the horizontal  visibility introduced must
  2228.   be   greater   than  5  km.
  2229. - Spectral conditions:  the gas  transmission  and phase
  2230.   functions are correct  between 0.25 a nd 4.0 microns,
  2231.   but the treatment of the  interaction   between   absorption
  2232.   and  scattering  is inaccurate for large absorption values.
  2233.   If a calculation of the  signal  within  the  absorption
  2234.   band is  needed,  this interaction  must be  reconsidered. 
  2235. - Surface  reflectance (spectral variation):
  2236.   Four base reflectances are supplied for a predefined spectral
  2237.   range.  The predefined  spectral domain is different depending
  2238.   on the case, and  reflectance is  considered zero  outside the
  2239.   imposed  limits.  The user must verify  these  limits.
  2240.  
  2241.  Geometric  conditions: 
  2242. -METEOSAT  Observations:  Provide  the Julian day, GMT
  2243.  time, the number of  columns,  the number of lines  
  2244.  (total  scale: 5000 x 2500)
  2245. -GOES EAST  Observations:  Provide  the Julian day, GMT
  2246.  time, the  number of  columns,  the  number of lines  (total
  2247.  scale:  15288 x 14568).
  2248. -GOES   WEST   Observations:  Provide the Julian day, GMT
  2249.  time, the number of  columns,  the number of lines
  2250.  (total scale:  15288 x 14568).
  2251. -AVHRR (NOAA8,  NOAA9, NOAA10, NOAA11) Observations:
  2252.  Provide the Julian day, GMT time, the number of columns
  2253.  (1-2048), the  longitude  and the time of the satellite's
  2254.  ascending node.
  2255. -HRV (SPOT)  Observations:
  2256. Provide  the  Julian  day, GMT time  and the  longitude  and
  2257. latitude  of  the  center  of  the  observation  scene.
  2258. -TM (LANDSAT)  Observations: Provide the Julian day, GMT
  2259. time and  the  longitude  and  latitude  of  the  center
  2260. of  the observation   scene.
  2261.  
  2262. Conventions:
  2263. Time  is  denoted  as Greenwich Mean Time (GMT):  (hh.ddd).
  2264. Sign  conventions for latitude  and  longitude  are:
  2265. north  latitude  > 0 ; south latitude < 0
  2266. east longitude > 0 ; west longitude <0
  2267.  
  2268. If these predefined  conventions  are not convenient,
  2269. you can define your own conventions by introducing the:
  2270. - solar zenith angle  (degrees)
  2271. - solar azimuth angle (degrees)
  2272. - satellite zenith angle (degrees)
  2273. - satellite azimuth angle (degrees)
  2274.  
  2275. Atmospheric  Model: 
  2276.  
  2277. You  can  select  one  of the  standard atmospheric
  2278. profiles (taken from the LOWTRAN program) 
  2279.  - no  gas  absorption
  2280.  - tropical 
  2281.  - midlatitude   summer
  2282.  - midlatitude  winter 
  2283.  - subarctic summer
  2284.  - subarctic  winter
  2285.  - US standard 62
  2286. If these standard  profiles are not adequate, then you can
  2287. select the concentration in absorbing gases and water vapor
  2288. (in this case, the  atmospheric  model is the US standard 62):
  2289. - uw (in g cm-2)
  2290. - uo3 (in cm-atm)
  2291. You can also define an atmospheric profile by employing
  2292. radiosondes over 34  levels. 
  2293. - altitude  (in km)
  2294. - pressure  (in mb)
  2295. - temperature (in K)
  2296. - H2O concentration  (in g m-3)
  2297. - O3 concentration  (in g m-3)
  2298.  
  2299. Aerosol  Model:
  2300. The user can  choose one  of the  following  standard
  2301. aerosol  models:
  2302. - no aerosols
  2303. - continental  model
  2304. - maritime model
  2305. - urban model
  2306. If these standard models are not  appropriate,  then you can
  2307. introduce  your own aerosol  model by defining  the fraction
  2308. (between  0 and 1) of each  component:
  2309.   -  volumic  % of dust -like
  2310.   -  volumic  % of  water-soluble
  2311.   -  volumic  % of oceanic 
  2312.   -  volumic % of soot 
  2313.   
  2314. Aerosol  concentration:
  2315. The user can fix the aerosol  concentration  by either
  2316. entering the meteorological  visibility  parameter in km
  2317. (the aerosol optical  thickness  is  then  calculated  using
  2318. a  standard profile)  or  by  directly   setting the aerosol
  2319. optical thickness  to the 550 nm wavelength (for this option
  2320. the visibility   is  zero).  
  2321.  
  2322. Data   defining   the   spectral conditions:
  2323. You can select  one of the  following  spectral bands:
  2324.  
  2325. METEOSAT     vis.  band 0.350 1.110
  2326. GOES EAST    vis.  band 0.490 0.900
  2327. GOES WEST    vis.  band 0.490 0.900
  2328. AVHRR NOAA8 1st band 0.500  0.740 2nd band 0.690  1.080 
  2329. AVHRR NOAA9 1st band 0.490 0.820 2nd band 0.640 1.190
  2330. AVHRR NOAA10 1st band 0.540 0.780 2nd band 0.600 1.200 
  2331. AVHRR NOAA11 1st band 0.540 0.800 2nd band 0.600 1.100 
  2332. HRV SPOT 1st band 0.460  0.710 2nd band 0.590 0.760 
  2333.          3rd band 0.740 0.950 
  2334. TM LANDSAT5  1st band 0.430 0.550 2nd band  0.500  0.650 
  2335.              3rd band  0.590  0.750 4th band 0.730  0.945 
  2336.          5th band 1.515  1.870 7th band 1.975  2.405
  2337. MSS LANDSAT5  1st band 0.475 0.640 2nd band 0.580 0.750
  2338.               3rd band 0.655 0.855 4th band 0.785 1.100
  2339.  
  2340. If these conditions are not fully  appropriate,  you can
  2341. also  define your own  spectral conditions  using: 
  2342. - a unique  wavelength  in  micrometers, permitting a 
  2343. monochromatic  calculation  (the gas absorption is taken
  2344. into account) 
  2345. - the spectral boundaries (the filter function  will be 
  2346. equal to 1 over  the  entire  band)
  2347. - the spectral  boundaries  and a filter  function  defined
  2348. using 0.005 micron intervals
  2349.  
  2350. Surface reflectance:
  2351.  
  2352. You can select a homogeneous  surface, which  introduces the
  2353.  surface   reflectance,   or  you  can  define  a  composite
  2354.  structure  formed of a circular target having radiance data
  2355.  of reflectance (r c) in an environment  of  reflectance  (r
  2356.  e).  The data are:  
  2357.  - the reflectance of the target (r c) 
  2358.  - the  reflectance of the  environment 
  2359.  - the radiation of the target in km 
  2360.  
  2361. Surface  reflectance  (spectral  variation):
  2362.  The spectral  dependence of the surface  reflectance can be
  2363.  fixed  according to the following  options:  
  2364.  - a constant r value (or r c, or r e) that is independent
  2365.  of wavelength 
  2366.  - an r value (or r c, or r e) given by 0.005 micron intervals
  2367.  between  the  spectral   boundaries  (if  the  bands  of  a
  2368.  satellite  are used, refer to the  corresponding  limits) 
  2369.  - the spectral reflectance of green vegetation 
  2370.  - the spectral reflectance  of clear water 
  2371.  - the spectral  reflectance  of sand 
  2372.  - the  spectral  reflectance  of lake  water 
  2373.  
  2374.  Results presentation:
  2375.  
  2376. The  SPHINX_5Sn  file  contains  full  results  as well as a
  2377. comparison between the simulation  employing the
  2378. approximate equations  and a more  precise  numerical  model
  2379. (using the successive  diffusion  orders  method).  The  
  2380. comparison  is completed for the  wavelength  and the 
  2381. geometric  conditions closest to the user' s, according to 
  2382. the following  table of values:  
  2383. theta s 15, 41, 60, 75 degrees  
  2384. theta v 00, 10, 20, 30, 40  degrees  
  2385. phi v - phi s 00, 90,  180  degrees  
  2386. lambda 0.450, 0.550, 0.650, 0.850, 1.600, 2.200 microns  
  2387. visibility 50,  23, 08, 05 km 
  2388.  
  2389. The  wavelength  used  is the  wavelength equivalent  to the
  2390. observing  spectral  band.  The  surface reflectance  used is
  2391. the surface  reflectance  equivalent to the  surface   target
  2392. in  this  spectral  band.  A  graphic representation is 
  2393. displayed showing the incident solar angle (in red) and the 
  2394. satellite viewing angle (in magenta) over a planisphere  
  2395. background.  The vertical to the  sub-satellite point is shown
  2396. in green.
  2397. $END ---------------------------------------------------------------------
  2398. $DEB 500 000 000 000 000Solar Zenith Angle Calculation
  2399.  
  2400. This function  calculates the height and the solar azimuth
  2401. angle for a surface  point and at a given  instant.
  2402. The data  can be  supplied  in  either format:
  2403. day/month  or  Julian  day.  
  2404. $END ---------------------------------------------------------------------
  2405. $DEB 012 000 000 000 000 Warper  
  2406. This  function allows you to  superimpose  512 x 512 image
  2407. projections  in various  geometries. The four A, B, C, and
  2408. D quadrants  are used as:
  2409. A: the reference  image
  2410. B: the warp image
  2411. C: the zoom over  reference  image
  2412. D: the zoom over warp image
  2413.  
  2414. Before using the WARPER  function,  you must first place the
  2415. reference  image in the A  quadrant  and the warp image into
  2416. the B  quadrant.  The  zooms  in the C and D  quadrants  are
  2417. designed to  facilitate  entering the  landmarks  and can be
  2418. reselected  with the left button from the A and B quadrants.
  2419.  
  2420. To begin,  introduce  the  landmarks  by  clicking on SELECT
  2421. MATCHING  POINTS and then enter the pixel pairs by  clicking
  2422. the right mouse button on the reference  image  (quadrant A
  2423. or C) and then on the warp image.  In this sequence, you can
  2424. also click with the left button in the A or B  quadrants  or
  2425. move the zoom  area.  
  2426.  
  2427. If you make a mistake,  the last pixel pair entered can be
  2428. undone by clicking on DELETE LAST ENTRY.
  2429.  
  2430. After each  entry,  Sphinx  displays:  
  2431. -  the number of pairs entered  
  2432. -  the  development  order  of  polynomials  
  2433. -  the standard deviation of the ensemble of landmarks 
  2434.  
  2435. As soon as 4 landmarks have been entered, Sphinx displays
  2436. in quadrant B a preview of the  landmark  selected in A.
  2437. If the  landmarks are  chosen  judiciously,  each  successive
  2438. preview  should confirm the  process.  
  2439. You can also  determine  when you can proceed to the 
  2440. calculation phase.
  2441.  
  2442. To proceed to the  calculation  phase,  click on SHOW
  2443. RESULT (VIS.  BANK) or SHOW RESULT (ALL   BANKS).
  2444. Once  the calculation  has finished, the result  
  2445. (image B  transformed into  the  geometry  of  A)  
  2446. is  displayed  in  quadrant  C.  Quadrant D displays the
  2447. difference between A and C.  
  2448.  
  2449. If you do not  find  the  results  satisfactory,  you can
  2450. add  new landmarks  by  clicking  again on  SELECT
  2451. MATCHING  POINTS.
  2452.  
  2453. Note:  The development  order of a polynomial can be imposed
  2454. by  the  user.  The  coordinates  of the  landmarks  can  be
  2455. written   in   a   file.  
  2456. Note:   Although   the   algorithm interpolates  correctly,
  2457. it extrapolates  fairly poorly.  It is  therefore   desirable
  2458. to   distribute   the   landmarks judiciously  over the image.
  2459. $END ---------------------------------------------------------------------
  2460. $DEB 909 000 000 000 000Orbit Simulation
  2461.  
  2462. This function displays a map of the globe with lines 
  2463. graphing a satellite orbit on the surface.
  2464. The user can modify any  parameter of the  satellite 
  2465. orbitography  and redraw the new orbits.
  2466.  
  2467. $END ---------------------------------------------------------------------
  2468. $DEB 908 000 000 000 000 3D Image Projection
  2469.  
  2470. This function constructs a 3D image using a series of 512
  2471. images.
  2472.  
  2473. The AB quadrant or  (AB,AG,AR in true color  mode) contains
  2474.        the lower  image  projection  (e.g., land).
  2475. The BB quadrant contains the elevation of each pixel in the
  2476.        AB image  (e.g., land mo del).
  2477. The CB or  (CB,CG,CR) quadrant  contains the upper image
  2478.        projection (e.g., clouds).
  2479. The DB quadrant  contains the elevation of each pixel in the
  2480.        CB  image  (e  .g.,  cloud  altitude).  
  2481. The  BB,  CB  and DB quadrants can remain empty.
  2482. The user determines the viewing angles  for the  projection
  2483. and  selects  the  quadrant  to display  the  3D  image.
  2484. $END ---------------------------------------------------------------------
  2485.  
  2486.  
  2487. Development  of  External Programs
  2488.  
  2489. General Principals
  2490. External programs can be used to read a Sphinx  image,
  2491. process  the  image, and then return the results to Sphinx.
  2492. These  programs can also pass parameters  entered by the user
  2493. when  running  the  program.
  2494. Three examples of external  programs are delivered  with the
  2495. Sphinx  package.  The  source  codes  are  contained  in the
  2496. Sphinx  examples  directory.  The external  programs must be
  2497. linked with the extlib.a  library located in the Sphinx lib'
  2498. directory.  WARNING:  the  linking  must  also be done  with
  2499. FORTRAN   libraries.
  2500.  
  2501. Interface   Functions
  2502. To communicate  with Sphinx, three  functions are available: 
  2503.  
  2504. { sphinx_get_para}(size_x,  size_y, red, green,  blue,
  2505. input_parameters,  user_message)
  2506.  
  2507. input  data:
  2508. char  * input_parameters;  output  data  char  *  user_message; 
  2509. int size_x, size_y, red, green, blue;
  2510.  
  2511. This function decodes the file (tmp)sphinx_sema* and returns
  2512. the image size  information  in lines and  columns  (size_x,
  2513. size_y ) as well as the three pointers  specifying  the red,
  2514. green or blue planes if they are  different  than zero.  The
  2515. user_message  field c orresponds to editor messages that are
  2516. provided  by  the  user  when  using  the   program.
  2517.  
  2518. { sphinx_read}(input_parameters,    red_image,    green_image,
  2519. blue_image)
  2520.  
  2521. input data:  char * input_parameters; 
  2522.  
  2523. output data: unsigned char *red_image,*green_image,*blue_image;
  2524.  
  2525. This  function   reads  images   transmitted  by  Sphinx.
  2526.  
  2527. { sphinx_write}(input_parameters,    red_image,   green_image,
  2528. blue_image)
  2529.  
  2530. This function  returns the externally  processed
  2531. image back to Sphinx.
  2532.  
  2533. FORTRAN program example for Silicon graphics  computer
  2534.  
  2535. program mire
  2536. character  *140  parameter, user_message
  2537. logical    red,   green,   blue
  2538. character red_ima(1024*1024)
  2539. character green_ima(1024*1024)
  2540. character blue_ima(1024*1024)
  2541. integer   colonne_nb,   raw_nb
  2542.  
  2543. c  Get external  parameter
  2544. call  getarg(1,  parameter)
  2545.  
  2546. c Get sphinx parameters
  2547. call  sphinx_get_para(colonne_nb,  raw_nb,  red,
  2548. green, blue,  parameter,  user_message)
  2549.  
  2550. c Read sphinx images
  2551. call sphinx_read(parameter,  red_ima, green_ima, blue_ima)
  2552.  
  2553. c User  main  computations  c  Send  results  to  sphinx  call
  2554. sphinx_write(parameter,  red_ima, green_ima,  blue_ima)
  2555. stop
  2556. end
  2557.  
  2558. FORTRAN  program  example  for  Hewlett  Packard
  2559. computer program mire (parameter)
  2560. character *140 parameter, user_message 
  2561. logical    red,   green,   blue
  2562. character red_ima(1024*1024) character green_ima(1024*1024)
  2563. character blue_ima(1024*1024)
  2564. integer colonne_nb, raw_nb
  2565.  
  2566. c Get sphinx parameters 
  2567. call  sphinx_get_para(colonne_nb,  raw_nb,  red,
  2568. green, blue, parameter,  user_message)
  2569. .......  identical to previous program ....
  2570.  
  2571. C  program  example
  2572.  
  2573. main(argc,  argv)
  2574. int argc;  char *argv[];
  2575. {
  2576. char  user_message[140];
  2577. int red, green,  blue, colonne_nb   raw_nb,   size;
  2578. unsigned  char   *red_ima, *green_ima,   *blue_ima;
  2579.  
  2580. /*  get  sphinx  parameters  */
  2581.    sphinx_get_para(&colonne_nb,   &raw_nb,   &red,   &green,
  2582.    &blue,               argv[1],               user_message,
  2583.    strlen(argv[1]),strlen(message));
  2584.    printf("  image  size: %d X %d' ,  colonne_nb,  raw_nb);
  2585.    printf("  input images red:  %d green:  %d blue:
  2586.    %d red, green, blue);
  2587.    printf(" user message:  %s user_message);
  2588.    /* memory allocations */
  2589.    size = colonne_nb * raw_nb;
  2590.    red_ima = (unsigned  char *) malloc(  size );
  2591.    green_ima =  (unsigned  char *) malloc( size );
  2592.    blue_ima = (unsigned  char *) malloc(  size );
  2593.    /* get sphinx input data */
  2594.    sphinx_read(  argv[1],  red_ima,
  2595.    green_ima, blue_ima,  strlen(argv[1]), size, size, size);
  2596.    /* User main  computation */
  2597.    /* Send results to sphinx */
  2598.    sphinx_write(   argv[1],  red_ima,  green_ima,  blue_ima,
  2599.    strlen(argv[1]), size, size, size);
  2600.  }
  2601.  
  2602.  
  2603.  Updating the wind_file_EXTS File
  2604.  
  2605. This file is  located  in the  Sphinx  files  directory.  It
  2606. contains the list of external  programs that are accessed by
  2607. Sphinx.  Two lines are required per program:  the first line
  2608. indicates the absolute file name of the executable file, and
  2609. the second line is a label which is displayed  under Sphinx'
  2610. s external functions menu.
  2611.  
  2612.  
  2613. Files Accessed by Sphinx
  2614.  
  2615. These files  reside in the Sphinx  "files"  directory.  They
  2616.  are normally under write file protection and can be neither
  2617.  modified nor deleted  (except files as described  above and
  2618.  below that are  specifically  adapted to the  environment).
  2619.  
  2620.  SPHINX_CAN_DIR    The   on-line    English    manual
  2621.  SPHINX_CFR_DIR  The  on-line  French  manual
  2622.  security  The authorization key
  2623.  COMPTA Sphinx utilization  statistics
  2624.  
  2625.  vidcolorpost The script shell for printing to a PostScript
  2626.  color printer (MUST BE ADAPTED TO THE  ENVIRONMENT)
  2627.  vidlas The script  shell for  printing  to a  LaserJet
  2628.  HP printer (MUST BE ADAPTED TO THE  ENVIRONMENT)
  2629.  vidlaspost  The script shell for  printing to a black
  2630.  and white  PostScript printer (MUST BE ADAPTED TO THE 
  2631.  ENVIRONMENT)
  2632.  vidpaint The script shell for printing to a PaintJet
  2633.  printer  (MUST BE ADAPTED TO THE ENVIRONMENT)
  2634.  wind_file_EXTS The list of external  programs 
  2635.  (MUST BE ADAPTED TO THE  ENVIRONMENT)
  2636.  
  2637.  The files  below are only used by the  functions  for orbit
  2638.  simulation  or  satellite  signal  processing.  They can be
  2639.  omitted if these  functions are not  utilized.
  2640. WD_MaxH The  altitudes of the globe by intervals of 1/3 of a degree
  2641.  WD_PriS The index  characterizing the surfaces of the globe
  2642.  coastfile.bin The continental contours
  2643.  5S_File The constants used for the satellite  signal modeling 
  2644.  
  2645.  The files below  are only  used by the test  functions.
  2646.  They  can be omitted   if  these   functions   are  not   utilized.
  2647.  ima_test.R.Z   Test   image 
  2648.  ima_test.G.Z    Test   image
  2649.  ima_test.B.Z Test image 
  2650.  
  2651.  Files Created by Sphinx
  2652.  
  2653. The location of temporary files (tmp) can be directed to any
  2654.   directory.  If you do not have enough  space in  /usr/tmp,
  2655.   you can  launch  Sphinx  using the option -U dir, with dir
  2656.   being  the  directory  name in  which  Sphinx  places  its
  2657.   temporary  files. 
  2658.   Example:  Sphinx -U /WORK/tmp A list of files or temporary 
  2659.   files produced by Sphinx follows.
  2660.   
  2661.   ($HOME/).SP_ALGEBRA  Saves the  equations  (IMAGE  ALGEBRA
  2662.   menu)
  2663.   ($HOME/).sphinx_fmt   User   specific   image description
  2664.   (tmp/)sphinx_masked Temporary file used to
  2665.   memorize the masked planes
  2666.   (tmp/)sphinx_crt0 Temporary file 
  2667.   (tmp/)sphiNx_crt0  Temporary file
  2668.   (tmp/)sphiMx_crt0 Temporary   file
  2669.   (tmp/)sphinxG_crt0    Temporary   file
  2670.   (tmp/)sphinx_data*   Temporary  files  for   communicating
  2671.   (tmp/)sphinx_sema*     with    the    external    programs
  2672.   (./)clsize.rs  CLUSTER  ANALYSIS  results
  2673.   (./)SPHINX_CLAn PIXEL CLASSIFICATION  results
  2674.   (./)SPHINX_FT Saves FOURIER function
  2675.   (./)SPHINX_GJETn  Printing of LaserJet  gray
  2676.   scale   images
  2677.   (./)SPHINX_GRAPHX   Saves   graphics
  2678.   (./)SPHINXGRAXYn     Extracted     data    from     graphs
  2679.   (./)SPHINX_LJETn   Printing  of  LaserJet   graphics
  2680.   (./)SPHINX_PCAn  PRINCIPAL COMPONENTS ANALYSIS results
  2681.   (./)SPHINX_PJETn   Printing  of  PaintJet   color   images
  2682.   (./)SPHINX_PSn    Printing    of    PostScript    graphics
  2683.   (./)SPHINX_PSCn  Printing of  PostScript  color images
  2684.   (./)SPHINX_PSGRn  Printing of PostScript gray scale images
  2685.   (./)SPHINX_VALn      PIXEL     VALUES     results
  2686.   (./)SPHINX_WARPERn   WARPER   results 
  2687.   (./)SPHGRAXYn EXTRACT    VALUES    results   in   
  2688.   REDRAW   SAVED   GRAPH
  2689.   (./)SPHINX_5Sn  SATELLITE  SIGNAL  SIMULATION  results
  2690.   (./)SP_ALGEBn IMAGE ALGEBRA real results
  2691.   (./)Save_ContV.R (.G .B) Save session files 
  2692.   (./)Save_Cont.CM  Save session files 
  2693.   (./)Save_ContM.R  (.G .B) Save  session  files
  2694.   
  2695. $END ---------------------------------------------------------------------
  2696.